【问题标题】:can't install grunt-combine-media-queries on Ubuntu 14.04.1无法在 Ubuntu 14.04.1 上安装 grunt-combine-media-queries
【发布时间】:2017-05-31 03:11:59
【问题描述】:

我需要帮助。我尝试安装 grunt-combine-media-queries:

npm install grunt-combine-media-queries --save
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.17
npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "grunt-combine-media-queries" "--save"
npm ERR! node v6.6.0
npm ERR! npm  v3.10.3
npm ERR! path /var/www/dev/htmlacademy/education.htmlacademy/less/test_area_less/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk/bin/sshpk-conv
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/var/www/dev/htmlacademy/education.htmlacademy/less/test_area_less/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk/bin/sshpk-conv'
npm ERR! enoent ENOENT: no such file or directory, chmod '/var/www/dev/htmlacademy/education.htmlacademy/less/test_area_less/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk/bin/sshpk-conv'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

有什么解决办法吗?感谢您的回答!

【问题讨论】:

    标签: node.js npm gruntjs


    【解决方案1】:

    尝试使用--no-bin-links 标志进行安装。例如:

    $ npm install grunt-combine-media-queries --save --no-bin-links

    来自文档的引述如下:

    设置为 false 使其不执行此操作。这可以用来解决某些文件系统不支持符号链接的事实,即使在表面上是 Unix 系统上也是如此。

    【讨论】:

      猜你喜欢
      • 2015-06-27
      • 1970-01-01
      • 1970-01-01
      • 2013-06-13
      • 2015-03-18
      • 2015-09-18
      • 2015-04-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多