找不到模块'shelljs'
我从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.
我试图安装shelljs grobally
npm install -g shelljs
但仍然没有工作。
我应该将其转换为PhoneGap项目并在其他IDE上工作?
我发现解决scheme,因为[-g]全局安装的某些原因不起作用。 所以我所做的就是在下面的项目位置安装shelljs命令。
Project \ platforms \ android \ cordova的path
然后在该位置安装“shelljs”
npm安装shelljs
希望这可以帮助别人有同样的问题。