moff / angular2-ladda

Angular 2 Ladda module
MIT License
97 stars 20 forks source link

npm install and start fail #2

Closed dave-kennedy closed 8 years ago

dave-kennedy commented 8 years ago
$ npm install
npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130

> fsevents@1.0.14 install /Users/dave.kennedy/Code/angular2-ladda/node_modules/fsevents
> node-pre-gyp install --fallback-to-build

[fsevents] Success: "/Users/dave.kennedy/Code/angular2-ladda/node_modules/fsevents/lib/binding/Release/node-v46-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

> angular2-ladda@1.0.1 prepublish /Users/dave.kennedy/Code/angular2-ladda
> tsc -p ./tsconfig.publish.json

error TS6053: File '/Users/dave.kennedy/Code/angular2-ladda/typings/index.d.ts' not found.

npm WARN angular2-ladda@1.0.1 No repository field.
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.4.5
npm ERR! npm  v3.10.6
npm ERR! code ELIFECYCLE
npm ERR! angular2-ladda@1.0.1 prepublish: `tsc -p ./tsconfig.publish.json`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the angular2-ladda@1.0.1 prepublish script 'tsc -p ./tsconfig.publish.json'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular2-ladda package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     tsc -p ./tsconfig.publish.json
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular2-ladda
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular2-ladda
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/dave.kennedy/Code/angular2-ladda/npm-debug.log

$ npm start

> angular2-ladda@1.0.1 start /Users/dave.kennedy/Code/angular2-ladda
> tsc && concurrently "npm run tsc:w" "npm run lite" 

error TS6053: File '/Users/dave.kennedy/Code/angular2-ladda/typings/index.d.ts' not found.

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v4.4.5
npm ERR! npm  v3.10.6
npm ERR! code ELIFECYCLE
npm ERR! angular2-ladda@1.0.1 start: `tsc && concurrently "npm run tsc:w" "npm run lite" `
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the angular2-ladda@1.0.1 start script 'tsc && concurrently "npm run tsc:w" "npm run lite" '.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular2-ladda package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     tsc && concurrently "npm run tsc:w" "npm run lite" 
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular2-ladda
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular2-ladda
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/dave.kennedy/Code/angular2-ladda/npm-debug.log
moff commented 8 years ago

Hi @dave-kennedy!

Please describe what exactly you were trying to do, when you got this error. As I understand you were trying to npm installafter you cloned repo, right?

This repo is just a source code of this package published at NPM. It should be installed in Angular 2 projects via npm install angular2-ladda --save.

This package is build on top of Angular 2 module starter. So if you want to work with package's source code - you have to install Typings first, run typings install and then npm install.

dave-kennedy commented 8 years ago

Ah, you're right. I'm still learning the ways of Angular 2 and Typescript. I don't have typings installed globally so I had to add a script to package.json, then I could run npm run typings install ala the Angular 2 quickstart tutorial.