2
votes

I am having issues running npm install in the angular-phonecat directory. I am assuming this may be an issue with my paths but not sure. Any insight would be much appreciated. I keep getting Error: Cannot find module 'update-notifier'. If i install this individually i will just get another missing module.

$ which node
/usr/local/bin/node

$ which npm
/Users/Ashton/.node/bin/npm
export PATH="/usr/local/bin/node:$PATH"
export PATH="$HOME/.node/bin:$PATH"
$ npm install

> [email protected] postinstall /Users/Ashton/Dropbox/Learning Projects/angular-phonecat
> bower install


module.js:340
    throw err;
          ^
Error: Cannot find module 'update-notifier'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object. (/Users/Ashton/Dropbox/Learning Projects/angular-phonecat/node_modules/.bin/bower:8:22)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)

npm ERR! [email protected] postinstall: `bower install`
npm ERR! Exit status 8
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the angular-phonecat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     bower install
npm ERR! You can get their info via:
npm ERR!     npm owner ls angular-phonecat
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/Users/Ashton/.node/bin/npm" "install"
npm ERR! cwd /Users/Ashton/Dropbox/Learning Projects/angular-phonecat
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.7
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/Ashton/Dropbox/Learning Projects/angular-phonecat/npm-debug.log
npm ERR! not ok code 0
1
Do you have bower installed in your machine?BKM
yes... $ which bower /Users/Ashton/.node/bin/bowerbusyPixels
What if you do npm install update-notifier?BKM
Then i get "Error: Cannot find module 'bower-logger'". I feel like i should not have to install these dependencies one by one... am I wrong? Thanks for your help by the way.busyPixels
If you are getting these errors then you have to install all these dependencies in order to workBKM

1 Answers

0
votes

I was having a similar issue when I was trying to download angular-seed project on windows 10. I installed GIT command line. Then Instead of downloading the ZIP, I used GIT command line to download the project. git clone https://YOURPORJECT.For the network issue I typed in git config --global url."https://".insteadOf git://.