[英]Unable to read “/usr/local/lib/node_modules/generator-angular-cordova/templates/common/index.html” file (Error code: ENOENT)
When running the generator-angular-cordova [1] yeoman generator, the following error occurs: 当运行generator-angular-cordova [1] yeoman生成器时,发生以下错误:
Unable to read "/usr/local/lib/node_modules/generator-angular-cordova/templates/common/index.html" file (Error code: ENOENT).
[1] https://github.com/wangshijun/generator-angular-cordova [1] https://github.com/wangshijun/generator-angular-cordova
1. Remove generator 1.卸下发电机
rm -rf /usr/local/lib/node_modules/generator-angular-cordova
2. Clone git repo 2.克隆git repo
cd /usr/local/lib/node_modules/ && git clone https://github.com/wangshijun/generator-angular-cordova.git
3. Install dependencies 3.安装依赖项
cd generator-angular-cordova
npm install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.