vimalavinisha / angular2-google-chart

Angular 2 google chart
MIT License
59 stars 45 forks source link

npm install is failing to install angular2-google-chart #32

Open smile18 opened 7 years ago

smile18 commented 7 years ago

I am trying to install angular2-google-chart using npm for my angular2 with Angular-Cli. Below is the error I get while doing npm install. Please let me know if there are any dependency on node js version? Thanks.

D:\gitmyworkspace\mywork\pcfdeploy> npm install angular2-google-chart
> angular2-google-chart@1.1.4 postinstall D:\gitmyworkspace\mywork\pcfdeploy\node_modules\angular2-google-chart
> typings install
'typings' is not recognized as an internal or external command,operable program or batch file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN enoent ENOENT: no such file or directory, open 'D:\gitmyworkspace\mywork\pcfdeploy\node_modules\es6-promise\package.json'
npm WARN @angular/platform-browser-dynamic@2.4.4 requires a peer of @angular/common@2.4.4 but none was installed.
npm WARN @angular/platform-browser@2.4.4 requires a peer of @angular/common@2.4.4 but none was installed.
npm WARN @angular/core@2.4.4 requires a peer of rxjs@^5.0.1 but none was installed.
npm WARN @angular/core@2.4.4 requires a peer of zone.js@^0.7.2 but none was installed.
npm WARN @angular/upgrade@2.4.4 requires a peer of @angular/core@2.4.4 but none was installed.
npm WARN @angular/upgrade@2.4.4 requires a peer of @angular/compiler@2.4.4 but none was installed.
npm WARN @angular/upgrade@2.4.4 requires a peer of @angular/platform-browser@2.4.4 but none was installed.
npm WARN @angular/upgrade@2.4.4 requires a peer of @angular/platform-browser-dynamic@2.4.4 but none was installed.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\\nodeJS\\node.exe" "D:\\nodeJS\\node_modules\\    npm\\bin\\  npm-cli.js" "install" "angular2-google-chart"
npm ERR! node v6.9.5
npm ERR!    npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! angular2-google-chart@1.1.4 postinstall: `typings install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular2-google-chart@1.1.4 postinstall script 'typings install'.
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-google-chart package,
npm ERR! not with   npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     typings install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!        npm bugs angular2-google-chart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!        npm owner ls angular2-google-chart
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     D:\gitmyworkspace\mywork\pcfdeploy\    npm-debug.log
vimalaanthony commented 7 years ago

Hi Please check whethere you have installed typings globally or not. If not please do npm install typings -g

To check verion typings -v

HarelM commented 7 years ago

Is it possible to install this package without installing typings? This is the first package I'm using that needs this (I'm in the final phase of migrating from angularjs (1.6.x) to angular 4). I rather not install it if it's not necessary (this will complicate the setup instructions of my project... :-/).

roar commented 7 years ago

I get this error even though I have installed typings globally...

pawelec commented 7 years ago

I have this same problem ;/

vimalavinisha commented 7 years ago

Hi,

I hope I fixed that that issue.. The reason is that am doing "typings install" script in the postinstall step. I published the new version. Please take a latest version of this module 2.2.3 and then check the flow. Please let me know the result here.