![](/img/trans.png)
[英]Error: ENOENT, no such file or directory '/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript/app/models
[英]Unable to read “/usr/local/lib/node_modules/generator-angular-cordova/templates/common/index.html” file (Error code: ENOENT)
當運行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.卸下發電機
rm -rf /usr/local/lib/node_modules/generator-angular-cordova
2.克隆git repo
cd /usr/local/lib/node_modules/ && git clone https://github.com/wangshijun/generator-angular-cordova.git
3.安裝依賴項
cd generator-angular-cordova
npm install
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.