问题
When I run npm install I see this error
3 verbose stack Error: 404 Not Found: 7zip-bin@~4.1.0
2293 verbose stack at fetch.then.res (C:\cygwin64\home\licbuild\ANSYSDev\LicensingPortal\node\node-v8.12.0-win-x64\node_modules\npm\node_modules\pacote\lib\fetchers\registry\fetch.js:42:19)
2293 verbose stack at tryCatcher (C:\cygwin64\home\licbuild\ANSYSDev\LicensingPortal\node\node-v8.12.0-win-x64\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
2293 verbose stack at Promise._settlePromiseFromHandler (C:\cygwin64\home\licbuild\ANSYSDev\LicensingPortal\node\node-v8.12.0-win-x64\node_modules\npm\node_modules\bluebird\js\release\promise.js:512:31)
2293 verbose stack at Promise._settlePromise (C:\cygwin64\home\licbuild\ANSYSDev\LicensingPortal\node\node-v8.12.0-win-x64\node_modules\npm\node_modules\bluebird\js\release\promise.js:569:18)
2293 verbose stack at Promise._settlePromise0 (C:\cygwin64\home\licbuild\ANSYSDev\LicensingPortal\node\node-v8.12.0-win-x64\node_modules\npm\node_modules\bluebird\js\release\promise.js:614:10)
2293 verbose stack at Promise._settlePromises (C:\cygwin64\home\licbuild\ANSYSDev\LicensingPortal\node\node-v8.12.0-win-x64\node_modules\npm\node_modules\bluebird\js\release\promise.js:693:18)
2293 verbose stack at Async._drainQueue (C:\cygwin64\home\licbuild\ANSYSDev\LicensingPortal\node\node-v8.12.0-win-x64\node_modules\npm\node_modules\bluebird\js\release\async.js:133:16)
2293 verbose stack at Async._drainQueues (C:\cygwin64\home\licbuild\ANSYSDev\LicensingPortal\node\node-v8.12.0-win-x64\node_modules\npm\node_modules\bluebird\js\release\async.js:143:10)
2293 verbose stack at Immediate.Async.drainQueues (C:\cygwin64\home\licbuild\ANSYSDev\LicensingPortal\node\node-v8.12.0-win-x64\node_modules\npm\node_modules\bluebird\js\release\async.js:17:14)
2293 verbose stack at runCallback (timers.js:810:20)
2293 verbose stack at tryOnImmediate (timers.js:768:5)
2293 verbose stack at processImmediate [as _immediateCallback] (timers.js:745:5)
As workaround I tried
- npm i 7zip-bin@4.1.0, this didn't solve this issue
- npm install https://npmjs.org/7zip-bin/v/4.1.0
This is npm repo for this package enter link description here
Has anyone seen this kind of error before? Any suggestion will really be appreciated, thank you :)
回答1:
This appears to be a transient issue as of today. I'm the maintainer of error-ex
which has also received a report outlining this same issue from multiple users. The package exists and your registry string is correct - I believe they're having platform issues.
If you have a VPN, try to get close to California - apparently users around San Jose are able to get otherwise broken packages right now.
I have notified npm as I believe this to be an issue on their end.
EDIT: this has been fixed.
回答2:
Try running the following command first and then run yours:
npm config set registry http://registry.npmjs.org
回答3:
It is problem with npm, try fix by:
npm install -g npm
npm cache clean
npm update
npm install
来源:https://stackoverflow.com/questions/60185963/error-when-i-run-npm-install-error-404-not-found-7zip-bin4-1-0