当我从Visual Studio 2015运行Apache Cordova项目时,我有一个错误,如下所示.
Error BLD401 Error : BLD00401 : Could not find module 'shelljs'. Please Go to Tools --> Options --> Tools for Apache Cordova --> Cordova Tools --> Clear Cordova Cache and try building again.
Run Code Online (Sandbox Code Playgroud)
我尝试了grobally安装shelljs
npm install -g shelljs
但仍然没有工作.
我应该将其转换为PhoneGap项目并在其他IDE上工作吗?
Mir*_*rrh 21
我找到了解决方案,因为[-g]全局安装的某些原因无效.所以我所做的是在项目位置安装shelljs命令,如下所示.
Project\platforms\android\cordova的路径
然后在该位置安装"shelljs"
npm install shelljs
希望这有助于某人有同样的问题.