Npm安装错误:错误:404未找到:flatmap-stream@0.1.2

时间:2018-12-20 14:51:31

标签: node.js npm-install

npm install之后,我收到此错误

6397 verbose stack Error: 404 Not Found: flatmap-stream@0.1.2
6397 verbose stack     at fetch.then.res (C:\Users\\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\lib\fetchers\registry\fetch.js:42:19)
6397 verbose stack     at tryCatcher (C:\Users\\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
6397 verbose stack     at Promise._settlePromiseFromHandler (C:\Users\\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\promise.js:512:31)
6397 verbose stack     at Promise._settlePromise (C:\Users\\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\promise.js:569:18)
6397 verbose stack     at Promise._settlePromise0 (C:\Users\\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\promise.js:614:10)
6397 verbose stack     at Promise._settlePromises (C:\Users\\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\promise.js:693:18)
6397 verbose stack     at Async._drainQueue (C:\Users\\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\async.js:133:16)
6397 verbose stack     at Async._drainQueues (C:\Users\\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\async.js:143:10)
6397 verbose stack     at Immediate.Async.drainQueues (C:\Users\\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\async.js:17:14)
6397 verbose stack     at runCallback (timers.js:810:20)
6397 verbose stack     at tryOnImmediate (timers.js:768:5)
6397 verbose stack     at processImmediate [as _immediateCallback] (timers.js:745:5)

节点版本为:8.12.0,NPM版本为6.1.0,

任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:4)

flatmap-stream已被npm取消发布,因为推测是恶意代码被注入了源代码。

如果这是您软件包的直接依赖项,请将其删除,然后尝试再次安装npm。 如果它是您已安装的任何软件包的嵌套依赖项,请停止使用该软件包,或使用shrinkwrap

替换为另一个