Install global typings from npm script -


installed typings globally

> npm install typings -g 

installed several typings

> typings install dt~angular --save --global > typings install dt~angular-ui-router --save --global > typings install dt~ui-grid --save --global > typings install npm~lodash --save 

all works fine, typings.json file created typings folder. , when run "typings install" command line expected output

> typings install  ├── lodash@4.0.0 ├── angular (global) ├── angular-ui-router (global) └── ui-grid (global) 

then add npm script automate little bit project deployment

"scripts": {     "install": "typings install" }, 

but when try run "npm install" module typings installed. global typings ignored

> typings install   └── lodash@4.0.0 

tried add --global flags package.json without success.

most have local version of typings not 1.3.2

run npm install -d typings@latest


Comments