當我使用我得到這個錯誤npm -g install js-beautify
`沒有這樣的文件或directory`在安裝JS美化NPM
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
或添加包lock.json臨時修復的https:/ /stackoverflow.com/a/46282382/1910007 – Bunker13