[]layacmd安装失败

如题,已经用cnpm进行下载,错误如下:
5897 verbose stack Error: electron@1.7.9 postinstall: `node install.js`
5897 verbose stack Exit status 1
5897 verbose stack     at EventEmitter.<anonymous> (D:\SDK\node.js\node_modules\npm\node_modules\npm-lifecycle\index.js:280:16)
5897 verbose stack     at emitTwo (events.js:126:13)
5897 verbose stack     at EventEmitter.emit (events.js:214:7)
5897 verbose stack     at ChildProcess.<anonymous> (D:\SDK\node.js\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
5897 verbose stack     at emitTwo (events.js:126:13)
5897 verbose stack     at ChildProcess.emit (events.js:214:7)
5897 verbose stack     at maybeClose (internal/child_process.js:925:16)
5897 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
5898 verbose pkgid electron@1.7.9
5899 verbose cwd C:\Users\huangzengming
5900 verbose Windows_NT 6.1.7601
5901 verbose argv "D:\\SDK\\node.js\\node.exe" "D:\\SDK\\node.js\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "layacmd" "--registry=https://registry.npm.taobao.org"
5902 verbose node v8.9.2
5903 verbose npm  v5.5.1
5904 error code ELIFECYCLE
5905 error errno 1
5906 error electron@1.7.9 postinstall: `node install.js`
5906 error Exit status 1
5907 error Failed at the electron@1.7.9 postinstall script.
5907 error This is probably not a problem with npm. There is likely additional logging output above.
5908 verbose exit [ 1, true ]
已邀请:

Monica - 知识达人

赞同来自:

我们这边测试没有问题,你这边是怎么操作的呢?我们是用npm安装的

libla

赞同来自:

我就是用npm安装的
npm --registry https://registry.npm.taobao.org install -g layacmd

环境在上面的日志里面都有

survivor - 翻身做咸鱼

赞同来自:

首先,错误出现在安装electorn 1.7.9时,难道你是在用electron不支持的系统?
其次,上面的不是很重要,因为layacmd并没有依赖electron,是作者不小心加上的,删掉electron依赖后,你估计就可以正常安装了。一两天内(应该是今天)你留意npm上layacmd的页面Dependencies中,electron消失了再试一次即可。

libla

赞同来自:

依赖还在
我的系统是win 7 64位专业版,也没有经过任何优化,使用默认管理员账号登录。能不能安装electron我不太清楚,之前没有这方面需求

要回复问题请先

商务合作
商务合作