You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install dependencies with mix deps.get
Create and migrate your database with mix ecto.setup
Install Node.js dependencies with npm install --prefix assets
Start Phoenix endpoint with mix phx.server
When executing npm install --prefix assets (btw should tell that need to cd assets), it complains that package.json is missing a name and a version.
Then, after fixing the package.json file, when executing mix phx.server, it says:
Could not start node watcher because script "c:/data/projects/elixir/phoenix_live_view_example/assets/node_modules/webpack/bin/webpack.js" does not exist.
So I run npm install and then it works. Thus it seems that npm install --prefix assets is not enough.
npm: 6.14.2
node: v12.16.1
The text was updated successfully, but these errors were encountered:
since your path starts with c:/ I guess you are on windows. there has been an issue with npm install --prefix assets on windows see Github Issue Comment
so maybe replace npm install --prefix assets with cd assets & npm install in the README for now so all users have a smooth process?
The docs say:
When executing
npm install --prefix assets
(btw should tell that need tocd assets
), it complains thatpackage.json
is missing a name and a version.Then, after fixing the
package.json
file, when executingmix phx.server
, it says:So I run
npm install
and then it works. Thus it seems thatnpm install --prefix assets
is not enough.npm: 6.14.2
node: v12.16.1
The text was updated successfully, but these errors were encountered: