Yeoman 生成器错误 - ENOENT:windows 上没有此类文件或目录
Yeoman generator error - ENOENT: no such file or directory on windows
我的 win 10 64 位机器上安装了以下软件包:
C:\Users\xxx\AppData\Roaming\npm
+-- bower@1.8.0
+-- generator-aspnet-angular@0.0.1
+-- generator-aspnetcore-spa@0.8.1
+-- generator-hottowel@0.4.1
+-- grunt-cli@1.2.0
+-- gulp@3.9.1
+-- gulp-concat@2.6.0
+-- gulp-uglify@1.5.3
`-- yo@1.8.5
尝试 运行 生成器 aspnet-angular,我收到以下错误:
yo aspnet-angular
_-----_ ╭──────────────────────────╮
| | │ Welcome to the cool │
|--(o)--| │ generator-aspnet-angular │
`---------´ │ generator! │
( _´U`_ ) ╰──────────────────────────╯
/___A___\ /
| ~ |
__'.___.'__
´ ` |° ´ Y `
? Your project name AngularAspNetGenerator
events.js:160
throw er; // Unhandled 'error' event
^
Error: ENOENT: no such file or directory, open 'C:\Development\AngularAspNetGenerator\Web.config'
at Error (native)
at Object.fs.openSync (fs.js:640:18)
at Object.fs.readFileSync (fs.js:508:33)
at Object.readFileAsString (C:\Users\xxx\AppData\Roaming\npm\node_modules\generator-aspnet-angular\node_modules\html-wiring\index.js:281:13)
at child.writing (C:\Users\xxx\AppData\Roaming\npm\node_modules\generator-aspnet-angular\generators\app\index.js:30:32)
at Object.<anonymous> (C:\Users\xxx\AppData\Roaming\npm\node_modules\generator-aspnet-angular\node_modules\yeoman-generator\lib\base.js:431:23)
at C:\Users\xxx\AppData\Roaming\npm\node_modules\generator-aspnet-angular\node_modules\run-async\index.js:25:25
at C:\Users\xxx\AppData\Roaming\npm\node_modules\generator-aspnet-angular\node_modules\run-async\index.js:24:19
at C:\Users\xxx\AppData\Roaming\npm\node_modules\generator-aspnet-angular\node_modules\yeoman-generator\lib\base.js:432:9
at runCallback (timers.js:649:20)
yeoman 的新手,目前运气不佳。有人可以帮忙吗?
这是您使用的生成器的错误https://github.com/lidia-freitas/generator-aspnet-angular/issues/1
我建议在 https://npms.io/search?q=yeoman-generators 上搜索生成器并尽量留在维护的生成器上。有很多人发布损坏的开源包,所以如果你想节省一些时间,最好在使用之前确保项目得到良好维护:)
我的 win 10 64 位机器上安装了以下软件包:
C:\Users\xxx\AppData\Roaming\npm
+-- bower@1.8.0
+-- generator-aspnet-angular@0.0.1
+-- generator-aspnetcore-spa@0.8.1
+-- generator-hottowel@0.4.1
+-- grunt-cli@1.2.0
+-- gulp@3.9.1
+-- gulp-concat@2.6.0
+-- gulp-uglify@1.5.3
`-- yo@1.8.5
尝试 运行 生成器 aspnet-angular,我收到以下错误:
yo aspnet-angular
_-----_ ╭──────────────────────────╮
| | │ Welcome to the cool │
|--(o)--| │ generator-aspnet-angular │
`---------´ │ generator! │
( _´U`_ ) ╰──────────────────────────╯
/___A___\ /
| ~ |
__'.___.'__
´ ` |° ´ Y `
? Your project name AngularAspNetGenerator
events.js:160
throw er; // Unhandled 'error' event
^
Error: ENOENT: no such file or directory, open 'C:\Development\AngularAspNetGenerator\Web.config'
at Error (native)
at Object.fs.openSync (fs.js:640:18)
at Object.fs.readFileSync (fs.js:508:33)
at Object.readFileAsString (C:\Users\xxx\AppData\Roaming\npm\node_modules\generator-aspnet-angular\node_modules\html-wiring\index.js:281:13)
at child.writing (C:\Users\xxx\AppData\Roaming\npm\node_modules\generator-aspnet-angular\generators\app\index.js:30:32)
at Object.<anonymous> (C:\Users\xxx\AppData\Roaming\npm\node_modules\generator-aspnet-angular\node_modules\yeoman-generator\lib\base.js:431:23)
at C:\Users\xxx\AppData\Roaming\npm\node_modules\generator-aspnet-angular\node_modules\run-async\index.js:25:25
at C:\Users\xxx\AppData\Roaming\npm\node_modules\generator-aspnet-angular\node_modules\run-async\index.js:24:19
at C:\Users\xxx\AppData\Roaming\npm\node_modules\generator-aspnet-angular\node_modules\yeoman-generator\lib\base.js:432:9
at runCallback (timers.js:649:20)
yeoman 的新手,目前运气不佳。有人可以帮忙吗?
这是您使用的生成器的错误https://github.com/lidia-freitas/generator-aspnet-angular/issues/1
我建议在 https://npms.io/search?q=yeoman-generators 上搜索生成器并尽量留在维护的生成器上。有很多人发布损坏的开源包,所以如果你想节省一些时间,最好在使用之前确保项目得到良好维护:)