PatrickJS / PatrickJS-starter

MFE Starter
MIT License
10.33k stars 4.89k forks source link

Can`t find @angular/common when update from RC4 to RC6 #973

Closed eugenebovkun closed 7 years ago

eugenebovkun commented 8 years ago

Note: for support questions, please use one of these channels: Chat: AngularClass.slack or Twitter: @AngularClass

after run npm install get such message: npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:\Program Files\nodejs\node.exe" "[path]\npm\node_modules\npm\bin\npm-cli.js" "install" npm ERR! node v6.5.0 npm ERR! npm v3.10.6 npm ERR! code E404

npm ERR! 404 no such package available : @angular/common npm ERR! 404 npm ERR! 404 '@angular/common' is not in the npm registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 It was specified as a dependency of 'angular2-webpack-starter' npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request: npm ERR! [path]\npm-debug.log

IAMtheIAM commented 8 years ago

Which version NPM and Node are you running? RC6 required me to update to NPM 3+ and Node 4.4.7

Try running:

  1. npm install npm@latest -g
  2. Then wipe out all node_modules
  3. npm install

That should work. Edit: I just noticed you're already running NPM 3.10.6

Sounds like a npm cache issue or node_modules issue. Try wiping them both. npm cache clean rimraf -- node_modules

katallaxie commented 8 years ago

This appears to be a different problem as you seem to already run on 6.5.0. Can you remove node_modules and to an npm cache clean. All packages specified also @angular/common are available https://www.npmjs.com/~angular