angular2-meteor icon indicating copy to clipboard operation
angular2-meteor copied to clipboard

meteor npm install --save angular2-meteor ERROR

Open ThomsCass opened this issue 10 years ago • 7 comments

Hi,

When running this command to a new project here is what happens :

meteor npm install --save angular2-meteor

npm WARN peerDependencies The peer dependency [email protected] included from angular2-meteor will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm ERR! Darwin 14.5.0
npm ERR! argv "node" "/Users/Thoms/.meteor/packages/meteor-tool/.1.3.2_4.o7udns++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm" "install" "--save" "angular2-meteor"
npm ERR! node v0.10.43
npm ERR! npm  v2.14.22
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants [email protected]
npm ERR! peerinvalid Peer [email protected] wants [email protected]

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/Thoms/Desktop/dev/bugs/bugRouter/npm-debug.log

ThomsCass avatar Apr 30 '16 11:04 ThomsCass

+1 Same here, mine is on Windows.

jdforsythe avatar May 01 '16 03:05 jdforsythe

Hi @ThomsCass ,

Can you try to set the following dependencies in your package.json?

"angular2": "^2.0.0-beta.16",
"es6-shim": "^0.35.0",
"zone.js": "^0.6.10",
"rxjs": "5.0.0-beta.2",
"reflect-metadata": "0.1.2"

This seems to happen because angular2-beta17 wants rxjs-beta6, but angular2-meteor wants rxjs-beta2.

dapids avatar May 01 '16 09:05 dapids

I'm having a different error for the same command now, seems to be some confusion in the package.json or something:

npm http 404 https://registry.npmjs.org/angular/core/2.0.0-rc.1
npm ERR! 404 'angular' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Linux 3.4.0+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "angular2-meteor" "--save"
npm ERR! cwd /root/devel/testapp
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /root/devel/testapp/npm-debug.log
npm ERR! not ok code 0

And angular on the npmjs is indeed AngularJS v 1.x, not Angular 2. Could it be that the Angular team screwed up on renaming their Angular2 repo to angular but not updating npmjs?

Note: this could be due to my old npm version. I'm doing all this on Windows10/Bash setup, so it may not apply to all systems.

MilosStanic avatar May 12 '16 11:05 MilosStanic

I ran this command again this morning under Ubuntu and it works fine, without errors

MilosStanic avatar May 13 '16 09:05 MilosStanic

outdated, pls try 0.5.5

barbatus avatar May 13 '16 18:05 barbatus

@MilosStanic how did you resolve your issue on windows.. i am having the same problem

rollymaduk avatar Jun 09 '16 21:06 rollymaduk

@rollymaduk I didn't. It's a known issue in Windows Bash. We have to wait for the next release.

MilosStanic avatar Jun 09 '16 22:06 MilosStanic