无法在Visual Studio 2015上编译Ionic Cordova(Update 6)应用程序 [英] Cannot compile Ionic Cordova (Update 6) app on Visual Studio 2015

查看:1007
本文介绍了无法在Visual Studio 2015上编译Ionic Cordova(Update 6)应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我更新到Cordova工具版本6为Visual Studio我现在得到这个错误。每当我尝试构建我的解决方案。

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]\AppData\Roaming\npm\node_modules\vs-tac\app.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#vstac
http://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安装目录(通常在您的AppData文件夹中)的路径在路径中有空格,则会导致npm install错误。简单的解决方法是更改​​您的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 config set prefixC:\Folder\With\No\Spaces

npm config set prefix "C:\Folder\With\No\Spaces"

然后在VS中再次构建。我们会尽快解决问题,并在更新7中发布。

And then build again in VS. We will get this fixed up and released in Update 7 as soon as we can.

对不便之处,不便之处,敬请见谅。

Sorry for the inconvenience.

这篇关于无法在Visual Studio 2015上编译Ionic Cordova(Update 6)应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆