Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

npm install typescript not working

$
0
0

Currently my version of Visual Studio is using version 2.3 of typescript..

This was installed with the Visual Studio installation.

I have a requirement to test typescript latest version (2.5) using npm to install it.

However on attempting to install this version via npm i am having no success, i get this error in the log file....

12 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "typescript"
13 verbose node v9.3.0
14 verbose npm v5.5.1
15 error code EACCES
16 error errno EACCES
17 error FetchError: request to https://registry.npmjs.org/typescript failed, reason: connect EACCES 151.101.16.162:443
17 error at ClientRequest.req.on.err (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\src\index.js:68:14)
17 error at ClientRequest.emit (events.js:159:13)
17 error at TLSSocket.socketErrorListener (_http_client.js:389:9)
17 error at TLSSocket.emit (events.js:159:13)
17 error at emitErrorNT (internal/streams/destroy.js:64:8)
17 error at process._tickCallback (internal/process/next_tick.js:152:19)
17 error { FetchError: request to https://registry.npmjs.org/typescript failed, reason: connect EACCES 151.101.16.162:443
17 error at ClientRequest.req.on.err (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\src\index.js:68:14)
17 error at ClientRequest.emit (events.js:159:13)
17 error at TLSSocket.socketErrorListener (_http_client.js:389:9)
17 error at TLSSocket.emit (events.js:159:13)
17 error at emitErrorNT (internal/streams/destroy.js:64:8)
17 error at process._tickCallback (internal/process/next_tick.js:152:19)
17 error message: 'request to https://registry.npmjs.org/typescript failed, reason: connect EACCES 151.101.16.162:443',
17 error type: 'system',
17 error errno: 'EACCES',
17 error code: 'EACCES',
17 error stack: 'FetchError: request to https://registry.npmjs.org/typescript failed, reason: connect EACCES 151.101.16.162:443\n at ClientRequest.req.on.err (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\pacote\\node_modules\\make-fetch-happen\\node_modules\\node-fetch-npm\\src\\index.js:68:14)\n at ClientRequest.emit (events.js:159:13)\n at TLSSocket.socketErrorListener (_http_client.js:389:9)\n at TLSSocket.emit (events.js:159:13)\n at emitErrorNT (internal/streams/destroy.js:64:8)\n at process._tickCallback (internal/process/next_tick.js:152:19)' }
18 error Please try running this command again as root/Administrator.

Anyone know what the issue is?


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>