【问题标题】:Yeoman command yo not working in windows 7Yeoman 命令无法在 Windows 7 中工作
【发布时间】: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


【解决方案1】:

尝试将此添加到您的用户路径:

 C:\Users\myusername\AppData\Roaming\npm

然后,重新启动控制台。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-08-11
    • 1970-01-01
    • 2014-02-08
    • 2016-06-05
    • 2012-04-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多