gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-gyp\
node_modules\mkdirp\lib\opts-arg.js:7
gyp ERR! stack opts = { mode: 0o777, fs, ...opts }
gyp ERR! stack ^^^
gyp ERR! stack SyntaxError: Unexpected token ...
gyp ERR! stack at createScript (vm.js:56:10)
gyp ERR! stack at Object.runInThisContext (vm.js:97:10)
gyp ERR! stack at Module._compile (module.js:542:28)
gyp ERR! stack at Object.Module._extensions..js (module.js:579:10)
gyp ERR! stack at Module.load (module.js:487:32)
gyp ERR! stack at tryModuleLoad (module.js:446:12)
gyp ERR! stack at Function.Module._load (module.js:438:3)
gyp ERR! stack at Module.require (module.js:497:17)
gyp ERR! stack at require (internal/module.js:20:19)
gyp ERR! stack at Object. (C:\Users\Administrator\AppData\Roaming
\npm\node_modules\node-gyp\node_modules\mkdirp\index.js:1:79)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Administrator
\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Administrator\AppData\Roaming\npm\node_modules\cngm-cli\no
de_modules\node-expat
gyp ERR! node -v v6.11.1
gyp ERR! node-gyp -v v7.0.0
gyp ERR! Node-gyp failed to build your package.
gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue
with the package author.
C:\Users\Administrator\AppData\Roaming\npm
`-- (empty)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\
node_modules\npm\bin\npm-cli.js" "install" "-g" "cngm-cli"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! node-expat@2.3.18 install: node-gyp rebuild
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the node-expat@2.3.18 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-expat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-expat
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls node-expat
npm ERR! There is likely additional logging output above.
弄了一天了 求帮助