错误:404未找到:eslint-scope @ https://registry.npmjs.org/eslint-scope/-/eslint-scope-3.7.2.tgz

时间:2018-07-24 04:46:04

标签: azure-devops azure-pipelines

从VSTS运行构建时出现以下错误。 在本地构建时效果很好

2018-07-24T03:02:16.8311996Z 17219 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
2018-07-24T03:02:16.8312135Z 17220 warn enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: Cannot cd into 'D:\a\1\s\client\node_modules\.staging\fsevents-ebde0b8d'
2018-07-24T03:02:16.8312272Z 17221 verbose enoent SKIPPING OPTIONAL DEPENDENCY: This is related to npm not being able to find a file.
2018-07-24T03:02:16.8312389Z 17221 verbose enoent SKIPPING OPTIONAL DEPENDENCY:
2018-07-24T03:02:16.8312514Z 17222 verbose stack Error: 404 Not Found: eslint-scope@https://registry.npmjs.org/eslint-scope/-/eslint-scope-3.7.2.tgz
2018-07-24T03:02:16.8312662Z 17222 verbose stack     at fetch.then.res (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\fetchers\registry\fetch.js:42:19)
2018-07-24T03:02:16.8312812Z 17222 verbose stack     at tryCatcher (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
2018-07-24T03:02:16.8312977Z 17222 verbose stack     at Promise._settlePromiseFromHandler (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:512:31)
2018-07-24T03:02:16.8313134Z 17222 verbose stack     at Promise._settlePromise (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:569:18)
2018-07-24T03:02:16.8313293Z 17222 verbose stack     at Promise._settlePromise0 (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:614:10)
2018-07-24T03:02:16.8313451Z 17222 verbose stack     at Promise._settlePromises (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:693:18)
2018-07-24T03:02:16.8313602Z 17222 verbose stack     at Async._drainQueue (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:133:16)
2018-07-24T03:02:16.8313755Z 17222 verbose stack     at Async._drainQueues (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:143:10)
2018-07-24T03:02:16.8313958Z 17222 verbose stack     at Immediate.Async.drainQueues (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:17:14)
2018-07-24T03:02:16.8314086Z 17222 verbose stack     at runCallback (timers.js:810:20)
2018-07-24T03:02:16.8314194Z 17222 verbose stack     at tryOnImmediate (timers.js:768:5)
2018-07-24T03:02:16.8314348Z 17222 verbose stack     at processImmediate [as _immediateCallback] (timers.js:745:5)
2018-07-24T03:02:16.8314450Z 17223 verbose cwd D:\a\1\s\client
2018-07-24T03:02:16.8314538Z 17224 verbose Windows_NT 10.0.14393
2018-07-24T03:02:16.8314670Z 17225 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
2018-07-24T03:02:16.8314785Z 17226 verbose node v8.11.3
2018-07-24T03:02:16.8314868Z 17227 verbose npm  v5.6.0
2018-07-24T03:02:16.8314947Z 17228 error code E404
2018-07-24T03:02:16.8315065Z 17229 error 404 Not Found: eslint-scope@https://registry.npmjs.org/eslint-scope/-/eslint-scope-3.7.2.tgz
2018-07-24T03:02:16.8315170Z 17230 verbose exit [ 1, true ]
2018-07-24T03:02:16.8315226Z 
2018-07-24T03:02:16.8367243Z ##[error]Error: Npm failed with return code: 1
2018-07-24T03:02:16.8378551Z ##[section]Finishing: npm install

我扫描了我的代码以及node_modules文件夹,以检查谁在使用 eslint-scope@3.7.2 ,但是令人惊讶的是,所有引用都使用了 eslint-scope“ ^ 3.7.1 eslint-scope@3.7.3 。不确定eslint-scope@3.7.2来自何处。

我怀疑这是VSTS错误。有什么建议吗?

2 个答案:

答案 0 :(得分:0)

在将"@angular-devkit/build-angular": "~0.6.8"程序包升级到"@angular-devkit/build-angular": "^0.7.0-rc.3"之后,它起作用了。我仍然不确定~0.6.8版本有什么问题。

答案 1 :(得分:0)

eslist-scope@3.7.2是一个恶意软件包,未从注册表中发布,试图窃取NPM凭据。可以在ESLint博客https://eslint.org/blog/2018/07/postmortem-for-malicious-package-publishes

中找到完整的详细信息。