Urigo / angular-meteor

Angular and Meteor - The perfect stack
https://www.angular-meteor.com/
MIT License
2.36k stars 621 forks source link

FAILS: meteor npm install --save angular2-meteor-accounts-ui #1315

Closed robertlight closed 8 years ago

robertlight commented 8 years ago

Step 8 of socially tutorial has a problem - the following fails:

$ meteor npm install --save angular2-meteor-accounts-ui
npm ERR! Darwin 15.4.0
npm ERR! argv "node" "/Users/light/.meteor/packages/meteor-tool/.1.3.0_3.nfjm3y++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm" "install" "--save" "angular2-meteor-accounts-ui"
npm ERR! node v0.10.43
npm ERR! npm  v2.14.22
npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/angular2-meteor-accounts-ui
npm ERR! 404 
npm ERR! 404 'angular2-meteor-accounts-ui' 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 
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!     /Users/light/ownCloud/meteor/socially/npm-debug.log
hongbo-miao commented 8 years ago

Duplicated with https://github.com/Urigo/angular-meteor-docs/issues/24

robertlight commented 8 years ago

I'm all for it... I'm just figuring out the relationship between all these repos myself... thanks for "the glue".

@Hongbo-Miao - do you have any idea why I'm getting the messages:

npm WARN peerDependencies The peer dependency angular2@>=2.0.0-beta.9 included from angular2-meteor-accounts-ui 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.

It looks like there is a problem in the "install" step of angular2-meteor-accounts-ui package... I'm a noob when it comes to npm, do you have any experience as to what's going wrong?

robertlight commented 8 years ago

Now I get the following:

$ meteor npm install --save angular2-meteor-accounts-ui
npm WARN peerDependencies The peer dependency angular2@>=2.0.0-beta.9 included from angular2-meteor-accounts-ui 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.
|
> angular2-meteor-accounts-ui@0.3.5 install /Users/light/ownCloud/meteor/socially/node_modules/angular2-meteor-accounts-ui
> node install.js

npm WARN peerDependencies The peer dependency es6-shim@^0.35.0 included from angular2 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 WARN peerDependencies The peer dependency reflect-metadata@0.1.2 included from angular2 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 WARN peerDependencies The peer dependency rxjs@5.0.0-beta.2 included from angular2 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 WARN peerDependencies The peer dependency zone.js@^0.6.6 included from angular2 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.
zone.js@0.6.9 node_modules/zone.js

reflect-metadata@0.1.2 node_modules/reflect-metadata

es6-shim@0.35.0 node_modules/es6-shim

rxjs@5.0.0-beta.2 node_modules/rxjs

angular2@2.0.0-beta.13 node_modules/angular2

angular2-meteor-accounts-ui@0.3.5 node_modules/angular2-meteor-accounts-ui
├── fs.extra@1.3.2 (mkdirp@0.3.5, walk@2.3.9, fs-extra@0.6.4)
├── less-loader@2.2.3 (loader-utils@0.2.13)
└── less@2.6.1 (graceful-fs@4.1.3, mime@1.3.4, image-size@0.4.0, errno@0.1.4, mkdirp@0.5.1, promise@7.1.1, source-map@0.5.3, request@2.70.0)

which leaves me with a node_modules directory with the following in it:

$ ls node_modules/
angular2                        es6-shim                        rxjs
angular2-meteor-accounts-ui     reflect-metadata                zone.js

Is that what I should expect?

Urigo commented 8 years ago

yes that's good.

robertlight commented 8 years ago

so how should I write my parties-list.ts??

seems like the following is the only thing that passes muster with atom:

import {LoginButtons} from '../../node_modules/angular2-meteor-accounts-ui/login-buttons';

but then it blows up in the browser when it tries to load:

Uncaught (in promise) Uncaught SyntaxError: Unexpected token <
    Evaluating http://localhost:3000/node_modules/angular2-meteor-accounts-ui/login-buttons
    Error loading http://localhost:3000/client/app
oswee commented 8 years ago

Similar problem for me too

Urigo commented 8 years ago

fixed in the updated tutorial