我正在尝试在Visual Studio 2017中构建Cordova应用程序,已安装所有依赖项,并且在尝试构建应用程序时出现此错误:
Running command: cmd "/s /c "C:\Users\150987\source\repos\PedMobile\DSM.DataHub\DSM.PedMobileOff\platforms\android\cordova\build.bat --release --buildConfig=C:\Users\150987\source\repos\PedMobile\DSM.DataHub\DSM.PedMobileOff\build.json""
1>MSBUILD : cordova-build error : C:\Users\150987\source\repos\PedMobile\DSM.DataHub\DSM.PedMobileOff\node_modules\fs-extra\lib\fs\index.js:93
Command finished with error code 1: cmd /s /c "C:\Users\150987\source\repos\PedMobile\DSM.DataHub\DSM.PedMobileOff\platforms\android\cordova\build.bat --release --buildConfig=C:\Users\150987\source\repos\PedMobile\DSM.DataHub\DSM.PedMobileOff\build.json"
1>MSBUILD : cordova-build error : exports.write = function (fd, buffer, ...args)
1>MSBUILD : cordova-build error : ^^^
1>MSBUILD : cordova-build error : SyntaxError: Unexpected token ...
1>MSBUILD : cordova-build error : at exports.runInThisContext (vm.js:53:16)
1>MSBUILD : cordova-build error : at Module._compile (module.js:373:25)
1>MSBUILD : cordova-build error : at Object.Module._extensions..js (module.js:416:10)
1>MSBUILD : cordova-build error : at Module.load (module.js:343:32)
1>MSBUILD : cordova-build error : at Function.Module._load (module.js:300:12)
1>MSBUILD : cordova-build error : at Module.require (module.js:353:17)
1>MSBUILD : cordova-build error : at require (internal/module.js:12:17)
1>MSBUILD : cordova-build error : at Object.<anonymous> (C:\Users\150987\source\repos\PedMobile\DSM.DataHub\DSM.PedMobileOff\node_modules\fs-extra\lib\index.js:6:3)
1>MSBUILD : cordova-build error : at Module._compile (module.js:409:26)
1>MSBUILD : cordova-build error : at Object.Module._extensions..js (module.js:416:10)
1>MSBUILD : cordova-build error : Error: cmd: Command failed with exit code 1
有任何线索吗?也许安装其他依赖项?
试图删除node-modules文件夹,再次重新安装所有内容,重新加载项目,清除Apache Cordova工具缓存,没有任何帮助。