I am trying to create simple Phoenix application. When I run mix phoenix.new my_app
I got an error that:
* running mix deps.get
* running npm install && node node_modules/brunch/bin/brunch build
* error command failed to execute, please run the following command again after installation: "npm install && node node_modules/brunch/bin/brunch build"
After the installation when I run the command in above,again I get an error:
npm ERR! install Couldn't read dependencies
npm ERR! package.json ENOENT: no such file or directory, open '/home/agil/package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.
npm ERR! System Linux
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/userme
npm ERR! node -v v4.6.1
npm ERR! npm -v 1.4.21
npm ERR! path /home/userme/package.json
npm ERR! syscall open
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -2
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/userme/npm-debug.log
npm ERR! not ok code 0
I don't know how to fix this. I have tried to run with --no-brunch
options, but it didn't help to me. If you faced with problem like this I will be glad if you can share your experience.