0

The readme file in https://github.com/angular/quickstart/blob/master/README.md suggests that:

If the typings folder doesn't show up after npm install please install them manually with: npm run typings -- install

Running this command also helped me with a different repo I cloned. Can someone explain what this means? I read about typings lib, but don't understand why it requires a separate step?

1 Answer 1

1

typing is a library to install TypeScript definition of external libraries that are not coded using TypeScript. Using typing, you can install TypeScript definition of JavaScript libraries and get the autocomplete\validation of classes in TypeScript.

typings install do the download and installation of all the Typescript definition required and stored into the typings.json.

On the contrary, npm install usually installs only the npm dependencies. Usually they are two separated stages.

EDIT: To address your question, at the end: in the post install of the package.json there is this configuration: "postinstall": "typings install". Maybe, for some reason, it does not always work. So if does not create the typings folder after npm install they say to run the command manually.

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

2 Comments

do you understand why the tutorial I linked doesn't include it as a regular step? It seems like it might happen automatically?
in the post install of the package.json there is this: "postinstall": "typings install". Maybe, for some reason, it does not always work. So if does not create the typings folder after npm install they say to run the command manually. Sorry maybe this is the answer that you needed not the definition of typings :P

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.