question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error while installing typings

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Altair827commented, Aug 26, 2016

I found the problem… It was the proxy. I created a .typingsrc file with

{
  "rejectUnauthorized": false
}

It installed typings successfully.

$ npm run typings install

> angular2-quickstart@1.0.0 typings F:\AngularJS\my-proj
> typings "install"

typings WARN deprecated 7/25/2016: "registry:dt/core-js#0.0.0+20160602141332" is deprecated (updated, replaced or removed)
typings WARN deprecated 8/23/2016: "registry:dt/node#6.0.0+20160807145350" is deprecated (updated, replaced or removed)

├── angular-protractor (global)
├── core-js (global)
├── jasmine (global)
├── node (global)
└── selenium-webdriver (global)
1reaction
felliputecommented, Aug 26, 2016
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found