I am getting this error when trying to install nodemon in a brand new node project.
I've created a blank folder named my-project
then, inside it, I've executed to creeate a package.json file:
npm init -f
then when tryed to run
npm install --save-dev nodemon
And that was the result:
npm ERR! code ENOVERSIONS
npm ERR! No valid versions available for timed-out
I've just update my node version to the latest one and so npm tools.
node --version -> v8.9.4
npm --version -> 5.6.0
The funny part is that I've done this same steps in another computer 2 days ago with no problem.
325 verbose stack timed-out: No valid versions available for timed-out
325 verbose stack at pickManifest (C:Program Files
odejs
ode_modules
pm
ode_modulespacote
ode_modules
pm-pick-manifestindex.js:20:11)
325 verbose stack at fetchPackument.then.packument (C:Program Files
odejs
ode_modules
pm
ode_modulespacotelibfetchers
egistrymanifest.js:39:14)
325 verbose stack at tryCatcher (C:Program Files
odejs
ode_modules
pm
ode_modulesluebirdjs
eleaseutil.js:16:23)
325 verbose stack at Promise._settlePromiseFromHandler (C:Program Files
odejs
ode_modules
pm
ode_modulesluebirdjs
eleasepromise.js:512:31)
325 verbose stack at Promise._settlePromise (C:Program Files
odejs
ode_modules
pm
ode_modulesluebirdjs
eleasepromise.js:569:18)
325 verbose stack at Promise._settlePromise0 (C:Program Files
odejs
ode_modules
pm
ode_modulesluebirdjs
eleasepromise.js:614:10)
325 verbose stack at Promise._settlePromises (C:Program Files
odejs
ode_modules
pm
ode_modulesluebirdjs
eleasepromise.js:693:18)
325 verbose stack at Async._drainQueue (C:Program Files
odejs
ode_modules
pm
ode_modulesluebirdjs
eleaseasync.js:133:16)
325 verbose stack at Async._drainQueues (C:Program Files
odejs
ode_modules
pm
ode_modulesluebirdjs
eleaseasync.js:143:10)
325 verbose stack at Immediate.Async.drainQueues (C:Program Files
odejs
ode_modules
pm
ode_modulesluebirdjs
eleaseasync.js:17:14)
325 verbose stack at runCallback (timers.js:789:20)
325 verbose stack at tryOnImmediate (timers.js:751:5)
325 verbose stack at processImmediate [as _immediateCallback] (timers.js:722:5)
326 verbose cwd E:githubprojectsmy-projectserver
327 verbose Windows_NT 10.0.16299
328 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "--save-dev" "[email protected]"
329 verbose node v8.9.4
330 verbose npm v5.6.0
331 error code ENOVERSIONS
332 error No valid versions available for timed-out
333 verbose exit [ 1, true ]
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…