Error while installing typings
See original GitHub issueI am windows10 user and tried to install angular2. I couldn’t insatll it with npm install
at first but with an modified package.json Ii was able to install it.
{
"name": "angular2-quickstart",
"version": "1.0.0",
"scripts": {
"start": "npm run lite",
"lite": "lite-server"
},
"license": "ISC",
"dependencies": {
"@angular/common": "2.0.0-rc.5",
"@angular/compiler": "2.0.0-rc.5",
"@angular/core": "2.0.0-rc.5",
"@angular/forms": "0.3.0",
"@angular/http": "2.0.0-rc.5",
"@angular/platform-browser": "2.0.0-rc.5",
"@angular/platform-browser-dynamic": "2.0.0-rc.5",
"@angular/router": "3.0.0-rc.1",
"@angular/router-deprecated": "2.0.0-rc.2",
"@angular/upgrade": "2.0.0-rc.5",
"core-js": "^2.4.0",
"reflect-metadata": "0.1.3",
"rxjs": "5.0.0-beta.6",
"zone.js": "0.6.12",
"angular2-in-memory-web-api": "0.0.15",
"bootstrap": "^3.3.6"
},
"devDependencies": {
"concurrently": "^2.0.0",
"lite-server": "^2.2.0"
}
}
It didn’t created a typings folder so I ran npm run typings -- install
which produced this error
F:\AngularJS\my-proj>npm run typings -- install
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Aiden\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "typings" "--" "install"
npm ERR! node v4.5.0
npm ERR! npm v3.10.6
npm ERR! missing script: typings
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! F:\AngularJS\my-proj\npm-debug.log
What should I do to install it?
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
npm post-install typings not working correctly - Stack Overflow
when I run npm install in my directory I get an error: 'typings' is not recognized as an internal or external command, operable...
Read more >typings install failing · Issue #463 - GitHub
I am following "Angular 2" quickstart. When trying to do "npm install" it is failing at "typings install" step.
Read more >Installation of typings error while setting up the Angular2 ...
Hi,. I'm trying to setup the typescript Angular2 environment. but its constantly failing when it tries to install typings. Below is the error...
Read more >Typescript Typings: The Complete Guide: @types Compiler ...
What are compiler opt-in types, when should I use them and why? Why do I sometimes get a 'duplicate type definition' error, and...
Read more >Typescript Errors after install - Microsoft Community Hub
Hello, I cannot practice TypeScript because I get these errors every time when I run a ts file: I have latest VS Code...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found the problem… It was the proxy. I created a .typingsrc file with
It installed typings successfully.
Are you behind a proxy?
See if this helps: https://github.com/typings/typings/blob/master/docs/faq.md#configuration