[]layacmd mac 系统安装不上,急

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Andale Mono'; color: #28fe14; background-color: #000000; background-color: rgba(0, 0, 0, 0.9)}
span.s1 {font-variant-ligatures: no-common-ligatures}
yaotekejirigala:~ root# npm install layacmd -g/usr/local/bin/layacmd -> /usr/local/lib/node_modules/layacmd/layacmd.js

> electron@1.8.6 postinstall /usr/local/lib/node_modules/layacmd/node_modules/electron
> node install.js

/usr/local/lib/node_modules/layacmd/node_modules/electron/install.js:47
throw err
^

Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/layacmd/node_modules/electron/.electron'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@1.8.6 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@1.8.6 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /var/root/.npm/_logs/2018-05-08T04_07_13_726Z-debug.log
 
环境:
mac 10.13.4 (17E202)
 
尝试了 
sudo npm install layacmd -g
sudo -s
su -
 
都试了,
 
还有什么方法可以试?p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Andale Mono'; color: #28fe14; background-color: #000000; background-color: rgba(0, 0, 0, 0.9)}
span.s1 {font-variant-ligatures: no-common-ligatures}
已邀请:

Aaron1111

赞同来自:

输入 npm 显示什么?咱们一步一步来

该问题目前已经被锁定, 无法添加新回复

商务合作
商务合作