Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues during installation #67

Open
thojanssens opened this issue Apr 8, 2020 · 2 comments
Open

Issues during installation #67

thojanssens opened this issue Apr 8, 2020 · 2 comments

Comments

@thojanssens
Copy link

thojanssens commented Apr 8, 2020

The docs say:

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

@daskycodes
Copy link

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?

@spapas
Copy link

spapas commented Apr 24, 2020

I also had the same problem in Windows and yes, I needed to go to the assets folder and run npm install from there to make it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants