我已经在VSTS中向npm feed发布了react组件。我可以将组件安装在另一个项目中。但是当同事尝试时,他们会收到404错误。该组件已提升为发布版本,并且发布视图已为我组织中的任何人设置了权限。 日志:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli '{component name}',
1 verbose cli '--save' ]
2 info using npm@5.6.0
3 info using node@v8.11.2
4 verbose npm-session 003a914d29ae92d3
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 404 {url}/_packaging/{feed name}/npm/registry/always-auth=true/{component name} 1531ms
8 silly fetchPackageMetaData error for {component name}@latest 404 Not Found: {component name}@latest
9 verbose stack Error: 404 Not Found: {component name}@latest
9 verbose stack at fetch.then.res (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\fetchers\registry\fetch.js:42:19)
9 verbose stack at tryCatcher (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
9 verbose stack at Promise._settlePromiseFromHandler (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:512:31)
9 verbose stack at Promise._settlePromise (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:569:18)
9 verbose stack at Promise._settlePromise0 (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:614:10)
9 verbose stack at Promise._settlePromises (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:693:18)
9 verbose stack at Async._drainQueue (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:133:16)
9 verbose stack at Async._drainQueues (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:143:10)
9 verbose stack at Immediate.Async.drainQueues (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:17:14)
9 verbose stack at runCallback (timers.js:810:20)
9 verbose stack at tryOnImmediate (timers.js:768:5)
9 verbose stack at processImmediate [as _immediateCallback] (timers.js:745:5)
10 verbose cwd C:\Users\{user}\Documents\WebstormProjects\Visibility_Aramco\SourcingOptimization\UI\sourcing-optimization
11 verbose Windows_NT 10.0.17134
12 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "{component name}" "--save"
13 verbose node v8.11.2
14 verbose npm v5.6.0
15 error code E404
16 error 404 Not Found: {component name}@latest
17 verbose exit [ 1, true ]