【问题标题】:grunt-init templatename create nothing on Ubuntu 14.04grunt-init 模板名在 Ubuntu 14.04 上什么都不创建
【发布时间】:2014-11-18 00:56:20
【问题描述】:

我正在使用 grunt-init 为 c# 创建一个新的解决方案文件,供omnisharp 使用。

我已经安装了 grunt-init 使用:

npm install -g grunt-init

安装成功。问题是,每次我在目录顶部运行 grunt-init csharpsolution 时,shell 都没有输出。而且,根本没有创建文件。我已经 git 克隆了 ./grunt-init/csharpsolution。

有什么我想念的吗?

【问题讨论】:

    标签: grunt-init


    【解决方案1】:

    在我使用本网站 [0] 的说明安装 nodejs 后,此问题已解决。 (但在此之前,我使用“apt-get remove --purge nodejs”作为 root 卸载了来自 Ubuntu 存储库的 nodejs)。

    [0]中描述的在Ubuntu上安装nodejs的方法总结如下:

    1. 卷曲-sLhttps://deb.nodesource.com/setup | sudo bash -
    2. sudo apt-get install -y nodejs

    之后,我通过“npm install -g grunt-init”安装了 grunt-init。然后,我运行“grunt-init”就可以了!

    [0]https://github.com/joyent/node/wiki/installing-node.js-via-package-manager#debian-and-ubuntu-based-linux-distributions

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-12
      • 2015-06-30
      • 1970-01-01
      • 1970-01-01
      • 2017-02-07
      相关资源
      最近更新 更多