npm install -g less不起作用:EACCES:权限被拒绝
我试图减少对phpstorm的设置,以便可以在保存时将.less文件编译为.css。我已经安装了node.js,下一步(根据此https://www.jetbrains.com/webstorm/help/transpiling-sass-less-and-scss-to-css.html)正在以下位置运行此命令:终奌站 npm install -g less 但是,当我这样做时,我得到这些错误 ☁ ~ npm install -g less npm WARN install Couldn't install optional dependency: EACCES: permission denied, mkdir '/Users/brentscholl/.npm/mkdirp/0.5.1' npm WARN install Couldn't install optional dependency: EACCES: permission denied, mkdir '/Users/brentscholl/.npm/graceful-fs/3.0.8' npm WARN install Couldn't install optional dependency: EACCES: permission denied, mkdir '/Users/brentscholl/.npm/extend/3.0.0' npm WARN …