我需要帮助。我尝试安装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
这有什么解决方案吗?谢谢你的回答!
答案 0 :(得分:0)
尝试使用--no-bin-links标志进行安装。例如:
$ npm install grunt-combine-media-queries --save --no-bin-links
文档的引用如下:
设置为false以使其不执行此操作。这可以用来解决一些文件系统不支持符号链接的事实,即使在表面上的Unix系统上也是如此。