Edgar February 2016

installing grunt using npm manager having connection issues

Hey im trying to install Grunt using NPM manager and i seem to be having connection issues timing out i searched some online. i can hit this URL https://registry.npmjs.org/grunt just fine it will ask me if i want to save or run GRUNT.JSON and if i cut and paste that URL i will see the contents of that JSON in a gigantic array

GEL8953@VALGEL8953L MINGW64 ~/Dev/MillsDashboard/MillsDashboard (master)
$ npm install grunt grunt-cli -g
npm http GET https://registry.npmjs.org/grunt-cli
npm http GET https://registry.npmjs.org/grunt
npm http GET https://registry.npmjs.org/grunt-cli
npm http GET https://registry.npmjs.org/grunt
npm http GET https://registry.npmjs.org/grunt-cli
npm ERR! Error: connect ETIMEDOUT
npm ERR!     at errnoException (net.js:901:11)
npm ERR!     at Object.afterConnect [as oncomplete] (net.js:892:19)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program      
Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "grunt"    
"grunt-cli" "-g"
npm ERR! cwd C:\Users\GEL8953\Dev\MillsDashboard\MillsDashboard
npm ERR! node -v v0.10.13
npm ERR! npm -v 1.3.2
npm ERR! syscall connect
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm

when executing command "npm i grunt" from project root directory i get the following

   GEL8953@VALGEL8953L MINGW64 ~/Dev/MillsDashboard/MillsDashboard (master)
   $ npm i grunt
   npm ERR! Error: Invalid name: "MillsDashbaord"
  npm ERR!     at ensureValidName (C:\Program Files     
  (x86)\nodejs\node_modules\npm\node_modu                                             
  les\read-package-json\node_modules\normalize-package-
  data\lib\fixer.js:281:15)
  npm ERR!     at O        

Answers


suzumakes February 2016

You could need to set the registry:

npm set registry https://registry.npmjs.org/

Uninstall and clean your cache:

npm uninstall -g grunt-cli

npm cache clean

npm i -g grunt-cli

Downcase the MillsDashboard that contains your bin and controllers.

npm i grunt

Are you behind a firewall? Proxy?

Post Status

Asked in February 2016
Viewed 3,545 times
Voted 4
Answered 1 times

Search




Leave an answer