I am doing
npm install Sinon
the error that I am getting is
32 verbose stack Error: 404 Not Found: @sinonjs/formatio@^2.0.0
32 verbose stack at fetch.then.res (C:\Users\gvqc48\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\lib\fetchers\registry\fetch.js:42:19)
32 verbose stack at tryCatcher (C:\Users\gvqc48\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
32 verbose stack at Promise._settlePromiseFromHandler (C:\Users\gvqc48\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\promise.js:512:31)
32 verbose stack at Promise._settlePromise (C:\Users\gvqc48\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\promise.js:569:18)
32 verbose stack at Promise._settlePromise0 (C:\Users\gvqc48\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\promise.js:614:10)
32 verbose stack at Promise._settlePromises (C:\Users\gvqc48\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\promise.js:693:18)
32 verbose stack at Async._drainQueue (C:\Users\gvqc48\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\async.js:133:16)
32 verbose stack at Async._drainQueues (C:\Users\gvqc48\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\async.js:143:10)
32 verbose stack at Immediate.Async.drainQueues (C:\Users\gvqc48\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\async.js:17:14)
32 verbose stack at runCallback (timers.js:789:20)
32 verbose stack at tryOnImmediate (timers.js:751:5)
32 verbose stack at processImmediate [as _immediateCallback] (timers.js:722:5)
34 verbose Windows_NT 10.0.15063
35 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\gvqc48\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "sinon" "--save-dev"
36 verbose node v8.9.4
37 verbose npm v5.7.1
38 error code E404
39 error 404 Not Found: @sinonjs/formatio@^2.0.0
40 verbose exit [ 1, true ]
I am running
Node 8.9.4
Npm 5.7.1
There's apparently some issue with the encodeURI. Which can be caused by a lot of things. The sloped slashdot for scoped packages gets turned into %2f, so you get a 404 package not found. Long story short, removing the ~/.npmrc file fixed it for me. Be careful to back it up since it may also contain useful stuff in there.
Have a look here and the links in the threat: https://github.com/sinonjs/formatio/issues/14#issuecomment-371681402
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With