但是第二个问题始终无法解决 又出现新的报错
C:\Users\XXX>npm install layacmd -g
npm ERR! code EINTEGRITY
npm ERR! sha512-389hCdCKySQ0IjA6m1JIhg1UyO5XyYKhGhA01ye7GGcuvR0mHnSRGYDXvZOxStx/
tH9h8Dnbu5J0r2D8HJwoMw== integrity checksum failed when using sha512: wanted sha
512-389hCdCKySQ0IjA6m1JIhg1UyO5XyYKhGhA01ye7GGcuvR0mHnSRGYDXvZOxStx/tH9h8Dnbu5J0
r2D8HJwoMw== but got sha512-VG+sgZtMC1LcYL/yWT3mEt5l097m+GysNkbfIIF+keNhfCr8/xdo
E4B8PP0NLYGbIfh8OTOi/l6Dw+dMEMTd/g==. (10329604 bytes)
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\guanll\AppData\Roaming\npm-cache\_logs\2017-10-27T09_19_25
_157Z-debug.log
C:\Users\XXX>npm install layacmd -g
C:\Users\XXX\AppData\Roaming\npm\layacmd -> C:\Users\guanll\AppData\Roaming\n
pm\node_modules\layacmd\layacmd.js
> electron@1.7.9 postinstall C:\Users\guanll\AppData\Roaming\npm\node_modules\la
yacmd\node_modules\electron
> node install.js
C:\Users\XXX\AppData\Roaming\npm\node_modules\layacmd\node_modules\electron\i
nstall.js:48
throw err
^
Error: connect ETIMEDOUT 52.216.84.131:443
at Object._errnoException (util.js:1041:11)
at _exceptionWithHostPort (util.js:1064:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1153:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@1.7.9 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@1.7.9 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\guanll\AppData\Roaming\npm-cache\_logs\2017-10-27T10_27_04
_604Z-debug.log