docs: Mention need to yarn install (#1644)
This commit is contained in:
commit
5e2470f957
1 changed files with 8 additions and 1 deletions
|
@ -11,7 +11,14 @@ yarn workspace photos next dev
|
|||
```
|
||||
|
||||
There is also a convenience alias, `yarn dev:photos`. See `package.json` for the
|
||||
full list of such aliases.
|
||||
full list of such aliases. The two common patterns are `dev:<app-name>` for
|
||||
running a local development server, and `build:<app-name>` for creating a
|
||||
production build.
|
||||
|
||||
Note that yarn does not automatically update `node_modules` if you switch to a
|
||||
branch that has added or modified dependencies. So if you encounter unexpected
|
||||
errors or switching branches, make sure that your node_modules is up to date by
|
||||
running `yarn install` first (tip: `yarn` is a shortcut for `yarn install`).
|
||||
|
||||
To add a local package as a dependency, use `<package-name>@*`. The "*" here
|
||||
denotes any version.
|
||||
|
|
Loading…
Add table
Reference in a new issue