`没有这样的文件或目录`在npm中安装js时要美化 [英] `no such file or directory` While installing js beautify in npm
本文介绍了`没有这样的文件或目录`在npm中安装js时要美化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用npm -g install js-beautify
npm ERR! path /home/developer/software/nodejs/lib/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/developer/software/nodejs/lib/node_modules/js-
beautify/js/bin/css-beautify.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /home/developer/.npm/_logs/2017-09-18T07_52_38_910Z-
debug.log
该如何解决?
我正在使用节点8.5.0和npm 5.3.0
I am using node 8.5.0 an npm 5.3.0
推荐答案
明确安装最后一个好的版本:
Explicitly install the last good version:
npm -g install js-beautify@1.6.14
…或等待发布固定版本.
… or wait for a fixed version to be released.
这篇关于`没有这样的文件或目录`在npm中安装js时要美化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文