0

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 is created together with typings folder. And when I run "typings install" from command line I get expected output

> typings install

├── [email protected]
├── angular (global)
├── angular-ui-router (global)
└── ui-grid (global)

Then I add npm script to automate a little bit project deployment

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

But when I try to run "npm install" only module typings are installed. Global typings are completely ignored

> typings install


└── [email protected]

Tried to add --global flags into package.json but without success.

1 Answer 1

1

Most likely you have a LOCAL version of typings that is not 1.3.2

Run npm install -D typings@latest

Sign up to request clarification or add additional context in comments.

1 Comment

Yep, you're right. For some reason it was v0.7.7 installed locally. Your solution helped. Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.