无法在 Visual Studio 2015 上编译 Ionic Cordova(更新 6)应用程序 [英] Cannot compile Ionic Cordova (Update 6) app on Visual Studio 2015
问题描述
最近我更新到了 Visual Studio 的 Cordova 工具版本 6,我现在收到这个错误.任何时候我尝试构建我的解决方案.
Recently I updated to Cordova Tools version 6 for Visual Studio I am now getting this error. Anytime I try to build my solution.
: BLD00401 : Could not find module 'C:Users[User]AppDataRoaming
pm
ode_modulesvs-tacapp.js'. Please Go to Tools --> Options --> Tools for Apache Cordova --> Cordova Tools --> Clear Cordova Cache and try building again.
我尝试按照本指南重新安装 vs-tac,但没有骰子.https://msdn.microsoft.com/library/dn771551%20(v=vs.140).aspx#vstachttp://taco.visualstudio.com/en-us/docs/configure-vs-tools-apache-cordova/#vstac
I have tried to follow this guide to reinstall vs-tac but no dice.
https://msdn.microsoft.com/library/dn771551%20(v=vs.140).aspx#vstac
http://taco.visualstudio.com/en-us/docs/configure-vs-tools-apache-cordova/#vstac
提前感谢您的帮助
推荐答案
这似乎是我们在 Update 6 中引入的一个错误,如果您的 npm install 目录(通常在您的 AppData 文件夹中)的路径有路径中的空间.简单的解决方法是更改您的 npm 安装目录:
This appears to be a bug that we introduced in Update 6 that causes npm install errors if the path to your npm install directory (usually in your AppData folder) has a space in the path. The simple workaround is to change your npm install directory:
npm 配置设置前缀C:FolderWithNoSpaces"
npm config set prefix "C:FolderWithNoSpaces"
然后在VS中再次构建.我们将尽快修复并在更新 7 中发布.
And then build again in VS. We will get this fixed up and released in Update 7 as soon as we can.
很抱歉给您带来不便.
这篇关于无法在 Visual Studio 2015 上编译 Ionic Cordova(更新 6)应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!