简体   繁体   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)

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

Solution for OS X OS X解决方案

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.

相关问题 错误:ENOENT,没有这样的文件或目录'/ usr / lib / nodejs:/ usr / lib / node_modules:/ usr / share / javascript / app / models - Error: ENOENT, no such file or directory '/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript/app/models NPM Mac OS 错误:EACCES:权限被拒绝,访问“/usr/local/lib/node_modules” - NPM Mac OS error: EACCES: permission denied, access '/usr/local/lib/node_modules' 平均值:服务于Angular node_modules的NodeJS返回index.html - MEAN: NodeJS serving Angular node_modules returns index.html ./node_modules/firebase/index.js 错误:ENOENT:没有这样的文件或目录 - ./node_modules/firebase/index.js Error: ENOENT: no such file or directory 在node_modules中对文件的本地更改(角度2) - Local changes to file in node_modules (Angular 2) webpack + express + angular 4错误“错误:ENOENT:没有这样的文件或目录,统计信息'C:\\ public \\ index.html' - webpack + express + angular 4 error "Error: ENOENT: no such file or directory, stat 'C:\public\index.html' npm WARN checkPermissions 缺少对 /usr/local/lib/node_modules 的写入权限 - npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules 错误:ENOENT:没有这样的文件或目录,打开 'dist\browser\index.html' - Error: ENOENT: no such file or directory, open 'dist\browser\index.html' 如何读取angular index.html文件中的local Storage JSON并显示在View page source as a script - How to read local Storage JSON in angular index.html file and show in View page source as a script 未捕获的错误:模块构建失败(来自./node_modules/babel-loader/lib/index.js) - Uncaught Error: Module build failed (from ./node_modules/babel-loader/lib/index.js)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM