[英]TypeError when generating angular-fullstack service?
I'm receiving the following TypeError when trying to generate an angular-fullstack service. 我在尝试生成angular-fullstack服务时收到以下TypeError。
Does anyone know why this is happening? 有谁知道为什么会这样?
Here is my terminal window: 这是我的终端窗口:
Justins-MacBook-Pro-2:epbWebApp Justin$ yo angular-fullstack:service
? What module name would you like to use? epbWebAppApp.event
? Where would you like to create this service? event
events.js:160
throw er; // Unhandled 'error' event
^
TypeError: Path must be a string. Received undefined
at assertPath (path.js:7:11)
at Object.join (path.js:1213:7)
at /Users/Justin/npm/lib/node_modules/generator-angular-fullstack/node_modules/generator-ng-component/service/index.js:28:21
DUH! DUH! I re-read the documentation and I simply forgot that you must specify a name for the service in the initial command.
我重新阅读了文档,我忘了你必须在初始命令中指定服务的名称。
I typed the first command as follows, and it worked! 我输入第一个命令如下,它工作了!
yo angular-fullstack:service [NAME]
Then I was able to specify module name and location in the following two prompts. 然后我可以在以下两个提示中指定模块名称和位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.