ovsleep / bootstrap-switch

This is a Angular 2 Component to add a switch like input.
https://bootstrap-switch.herokuapp.com/
8 stars 10 forks source link

npm install is failed #19

Closed BugKiller-tech closed 6 years ago

BugKiller-tech commented 6 years ago

npm install --save angular2-bootstrap-switch

> angular2-localstorage@0.4.0 postinstall /Volumes/Work/Work/WEB/web-projects/2018_01_11_Latvia_angular4/alpenhaus-admin-panel/node_modules/angular2-localstorage
> typings install

sh: typings: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! angular2-localstorage@0.4.0 postinstall: `typings install`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the angular2-localstorage@0.4.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/hkg328/.npm/_logs/2018-01-25T20_38_59_537Z-debug.log

I met like above error.

BugKiller-tech commented 6 years ago

I've fixed by installing npm install typings -g. but I don't know why this is needed. If anyone knows about this, please let me kow.