Morningstar88 / citybuilder

Where we regenerate cities.
7 stars 2 forks source link

[error] Could not start node watcher because script "/home/ubuntu/workspace/citybuilder/assets/node_modules/brunch/bin/brunch" does not exist. Your Phoenix application is still running, however assets won't be compiled. You may fix this by running "cd assets && npm install". #20

Closed Morningstar88 closed 7 years ago

Morningstar88 commented 7 years ago

https://github.com/chrismccord/phoenix_chat_example/issues/15

I got rid of the npm warnings and lack of brunch by doing

rm -rf node_modules npm cache clean npm install

^ Doesn't work. Returns same error.

Morningstar88 commented 7 years ago

https://github.com/phoenixframework/phoenix/issues/1031

For one reason or another (or probably many reasons), some windows users have issues with node. Some have had success by installing brunch globally npm install -g brunch ,

npm install -g brunch

^ works

then running brunch directly on the console alongside their phoenix app with brunch watch. This will require you to remove the watchers configuration line from dev.exs (which is where the error is coming from. Please give this a shot as your phoenix app is otherwise all set to go.