【发布时间】:2014-12-01 16:13:43
【问题描述】:
我已经安装了 node 和 npm。之后我使用“npm install -g yo”安装了 yeoman。后来我使用“npm install -g generator-webapp”安装了 webapp 生成器。 现在所有需要的东西都安装好了,我使用了“yo webapp”命令和“yo”命令。两者都没有给我这个荒谬的消息
C:\Users\***>yo
Node Commands
Syntax:
node {operator} [options] [arguments]
Parameters:
/? or /help - Display this help message.
list - List nodes or node history or the cluster
listcores - List cores on the cluster
view - View properties of a node
online - Set nodes or node to online state
offline - Set nodes or node to offline state
pause - Pause node [deprecated]
resume - Resume node [deprecated]
For more information about HPC command-line tools,
see http://go.microsoft.com/fwlink/?LinkId=120724.
我不能用它做头或尾。请帮忙。
【问题讨论】:
-
您是否按照以下步骤操作:creativenotice.com/2013/10/user-yeoman-on-windows-7?
-
是的,我做到了。然而有一个问题。后来我意识到有一个 cmd 的快捷方式是由 node 创建的;现在,当我使用该快捷方式启动控制台时,一切正常(但是当我从运行命令打开控制台时仍然存在问题)。
标签: windows node.js web npm yeoman