在TFS 2015中运行构建定义时遇到以下错误:
- 2019-03-18T12:45:39.5644019Z npm ERR! install Couldn't read dependencies
- 2019-03-18T12:45:39.5644019Z npm ERR! Windows_NT 6.3.9600
- 2019-03-18T12:45:39.5644019Z npm ERR! argv "C:\\Program Files >(x86)\\nodejs\\\\node.exe" "C:\\Program Files >(x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
- 2019-03-18T12:45:39.5644019Z npm ERR! node v0.12.2
- 2019-03-18T12:45:39.5644019Z npm ERR! npm v2.7.4
- 2019-03-18T12:45:39.5644019Z npm ERR! path D:\IISTempFiles\AgentWorking\Agent-IISLGV013D-1\13\s\package.json
- 2019-03-18T12:45:39.5644019Z npm ERR! code ENOPACKAGEJSON
- 2019-03-18T12:45:39.5644019Z npm ERR! errno -4058
- 2019-03-18T12:45:39.5644019Z npm ERR! package.json ENOENT, open 'D:\IISTempFiles\AgentWorking\Agent-IISLGV013D-1\13\s\package.json'
- 2019-03-18T12:45:39.5644019Z npm ERR! package.json This is most likely not a problem with npm itself.
-2019-03-18T12:45:39.5644019Z npm ERR! package.json npm can't find a package.json file in your current directory.
-2019-03-18T12:45:39.5800326Z npm ERR! Please include the following file with any support request:
-2019-03-18T12:45:39.5800326Z npm ERR! D:\IISTempFiles\AgentWorking\Agent-IISLGV013D-1\13\s\npm-debug.log
- 2019-03-18T12:45:39.5956542Z ##[debug]rc:4294963238
- 2019-03-18T12:45:39.5956542Z ##[debug]success:false
- 2019-03-18T12:45:39.5956542Z ##[debug]taskRunner fail
- 2019-03-18T12:45:39.5956542Z ##[debug]load strings from: d:\iiswebsites\Agent-IISLGV013D-1\tasks\Npm\0.2.6\node_modules\vsts-task-lib\lib.json
- 2019-03-18T12:45:39.5956542Z ##[debug]load loc strings from: d:\iiswebsites\Agent-IISLGV013D-1\tasks\Npm\0.2.6\node_modules\vsts-task-lib\Strings\resources.resjson\en-US\resources.resjson
- 2019-03-18T12:45:39.5956542Z ##[debug]task result: Failed
- 2019-03-18T12:45:39.5956542Z Npm failed with error: C:\Program Files(x86)\nodejs\npm.cmd failed with return code: 4294963238