Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while using npm install (npm ERR! Windows_NT 6.3.9600 )

Tags:

node.js

npm

Hi all I am getting the following error while trying to install a package via npm. The operating system i am using for this is windows 8. It works perfectly on Ubuntu. Please help me resolve this issue.

C:\Users\xxxxx>npm install -g jshint

npm ERR! registry error parsing json

npm ERR! Windows_NT 6.3.9600 

npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\node\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "jshint"

npm ERR! node v0.12.4

npm ERR! npm  v2.10.1

npm ERR! Unexpected token <

npm ERR! <html>

npm ERR! <head>

npm ERR! </head>

npm ERR! <body>

npm ERR! We are sorry but this is temporarily unavailable.

npm ERR! <!-- Site Not Found. -->

npm ERR! </body>

npm ERR! </html>

npm ERR!

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!     C:\Users\xxxxx\npm-debug.log
like image 413
Rahul Avatar asked Jun 22 '15 19:06

Rahul


3 Answers

I got a solution for this question (at least in my case). The url for the registry was out dated. Please see this link: Can't install any packages in Node.js using "npm install"

Thank you.

like image 195
Rahul Avatar answered Sep 26 '22 16:09

Rahul


In my case , Upgrading npm on Windows requires manual steps to ensure that PowerShell/CMD find the new version of npm. This is a small tool made by Microsoft DX engineers with for npm and Node, reducing the process to a simple command. For more detail view npm-windows-upgrade

like image 24
Shailesh Singh Avatar answered Sep 24 '22 16:09

Shailesh Singh


You can use this step

1. install latest node js from https://nodejs.org/en/
2.Run CMD with "Run as Administrator"
3.npm install -g angular-cli

It will run

like image 23
Mahesh singh chouhan Avatar answered Sep 24 '22 16:09

Mahesh singh chouhan