簡體   English   中英

無法讀取“ /usr/local/lib/node_modules/generator-angular-cordova/templates/common/index.html”文件(錯誤代碼:ENOENT)

[英]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] https://github.com/wangshijun/generator-angular-cordova

OS X解決方案

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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM