我一直在尝试和尝试各种各样的建议等,但似乎没有任何效果。在干净的64x机器上干净安装企业更新2软件包Window 7 Pro(或企业版 - 相同结果)仍然无法在创建新项目后正确构建空白Cordova项目!它也发生在对现有Visual Studio 2015的更新中。我发现它可以在干净的Windows 10-64计算机上运行。
有没有办法让它在Windows 7上运行? (如果这是问题?)。这是下面的构建结果。首先,为什么要尝试更新npm?我也试图解决文件夹问题,但不能。再次,在Win 10上都很好。
1>------ Build started: Project: BlankCordovaApp1, Configuration: Debug Android ------
Third party software is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third party software. Third party software may include dependencies which are governed by additional licenses.
Installing npm 2.14.9. This could take a few minutes...
There was an issue clearing the sandboxed npm folder: Could not find a part of the path '_stream_duplex.js'.
Failed: Access to the path 'C:\Users\ed.chmiel\AppData\Roaming\Microsoft\VisualStudio\MDA\vs-npm\2.14.9\npm-2.14.9' is denied.
1> Third party software is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third party software. Third party software may include dependencies which are governed by additional licenses.
1> Installing npm 2.14.9. This could take a few minutes...
1> There was an issue clearing the sandboxed npm folder: Could not find a part of the path '_stream_duplex.js'.
1> Failed: Access to the path 'C:\Users\ed.chmiel\AppData\Roaming\Microsoft\VisualStudio\MDA\vs-npm\2.14.9\npm-2.14.9' is denied.
1> Your environment has been set up for using Node.js 0.12.7 (x64) and npm.
1> ------ Ensuring correct global installation of package from source package directory: D:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac
1> ------ Name from source package.json: vs-tac
1> ------ Version from source package.json: 1.0.42
1> ------ Package already installed globally at correct version.
1> ------ Installing Cordova tools cordova@6.1.1 for project from npm. This could take a few minutes...
1> Each package is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies.
1> 'C:\Users\ed.chmiel\AppData\Roaming\Microsoft\VisualStudio\MDA\vs-npm\2.14.9\npm.cmd' is not recognized as an internal or external command,
1> operable program or batch file.
1> [Error ------ npm install failed. Exit code: 1]
1>MSBUILD : cordova-build error : Build error: ------ npm install failed. Exit code: 1
1>MDAVSCLI : Build error : ------ npm install failed. Exit code: 1
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
更新3后,Clear Cordova Cache在Win 7计算机上产生相同的错误。
还尝试了最新的节点,并且npm和node都显示最新的节点。
感谢您提供任何帮助。