【发布时间】:2016-11-10 20:15:07
【问题描述】:
我使用 webpack 来打包我的 Angular2 应用程序。如果我在 vNext 托管构建中使用我的 npm run build:prod 我收到此错误:
2016-11-10T19:58:29.4167668Z npm ERR! enoent ENOENT: no such file or directory, open 'C:\a\1\s\package.json'
2016-11-10T19:58:29.4177672Z npm ERR! enoent ENOENT: no such file or directory, open 'C:\a\1\s\package.json'
2016-11-10T19:58:29.4177672Z npm ERR! enoent This is most likely not a problem with npm itself
2016-11-10T19:58:29.4177672Z npm ERR! enoent and is related to npm not being able to find a file.
2016-11-10T19:58:29.4177672Z npm ERR! enoent
2016-11-10T19:58:29.4297670Z
2016-11-10T19:58:29.4297670Z npm ERR! Please include the following file with any support request:
2016-11-10T19:58:29.4297670Z npm ERR! C:\a\1\s\npm-debug.log
2016-11-10T19:58:29.4457679Z ##[error]Npm failed with error: C:\Program Files\nodejs\npm.cmd failed with return code: 4294963238
我有这个步骤:
- Nuget 恢复
- npm 安装
- 构建解决方案
- 测试程序集
- npm run build:prod
在本地 npm run build:prod 工作正常。
【问题讨论】:
标签: npm webpack azure-devops tfsbuild azure-pipelines