很容易复制 - 只需尝试安装它。
我在 Windows、Linux 和 SmartOS 上尝试过,得到了同样的结果。
npm 安装 js 美化
npm WARN enoent ENOENT: 没有这样的文件或目录,打开'/home/andra/trash/blah/package.json'
npm WARN blah 没有描述
npm WARN blah 没有存储库字段。
npm WARN blah 没有 README 数据
npm WARN blah 没有许可证字段。
错误! Linux 4.4.0-92-通用
错误! argv "/usr/local/bin/node" "/usr/local/bin/npm" "安装" "js-beautify"
错误! 节点 v6.9.1
错误! npm v3.10.8
错误! 路径 /home/andra/trash/blah/node_modules/js-beautify/js/bin/css-beautify.js
错误! 代码 ENOENT
错误! 错误号 -2
错误! 系统调用 chmod
错误! enoent ENOENT: 没有这样的文件或目录,chmod '/home/andra/trash/blah/node_modules/js-beautify/js/bin/css-beautify.js'
错误! enoent ENOENT: 没有这样的文件或目录,chmod '/home/andra/trash/blah/node_modules/js-beautify/js/bin/css-beautify.js'
错误! enoent 这很可能不是 npm 本身的问题
错误! enoent 并且与 npm 无法找到文件有关。
错误! 恩恩特
错误! 请在任何支持请求中包含以下文件:
错误! /home/andra/trash/blah/npm-debug.log
我们也一样。 所有的工作都失败了......
以前的版本存在,
但最后 1.7.0 - 不存在
yurii<strong i="7">@hp0143</strong>:/home/si/$ npm i [email protected]
[email protected] /home/si/
└── [email protected]
npm WARN [email protected] No repository field.
yurii<strong i="8">@hp0143</strong>:/home/si/$ npm i [email protected]
npm WARN [email protected] No repository field.
npm ERR! Linux 4.9.0-3-amd64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "i" "[email protected]"
npm ERR! node v6.11.3
npm ERR! npm v3.10.10
npm ERR! path /home/si/node_modules/js-beautify/js/bin/css-beautify.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/home/si/node_modules/js-beautify/js/bin/css-beautify.js'
npm ERR! enoent ENOENT: no such file or directory, chmod '/home/si/node_modules/js-beautify/js/bin/css-beautify.js'
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
npm ERR! Please include the following file with any support request:
npm ERR! /home/si/npm-debug.log
同样的错误在这里
对我来说同样的错误...
同样的错误
同样的错误在这里
已在 1.7.2 中修复。
见#1254。 将实施测试以防止将来发生这种情况。
最有用的评论
fwiw 这是对https://github.com/beautify-web/js-beautify/issues/1247的欺骗