electron-vue 下载包出现错误

之前都没有问题,后来不知道为什么就报错了
下载包的错误:
PS D:weexelectron-vuemy-project> npm install --save-dev electron-builder

ref@1.3.5 install D:weexelectron-vuemy-projectnode_modulesref
node-gyp rebuild

D:weexelectron-vuemy-projectnode_modulesref>if not defined npm_config_node_gyp (node "C:Program Files (x86)nodejsnode_modulesnpmnode_modulesnpm-lifecyclenode-gyp-bin\....node_modulesnode-gypbinnode-gyp.js" rebuild ) else (node "C:Program Files (x86)nodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js" rebuild )
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: spawn D:visual studioMSBuild15.0BinMSBuild.exe ENOENT
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
gyp ERR! stack at onErrorNT (internal/child_process.js:415:16)
gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:63:19)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd D:weexelectron-vuemy-projectnode_modulesref
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! This is a bug in node-gyp.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR! https://github.com/nodejs/nod...
npm WARN rollback Rolling back readable-stream@2.3.6 failed (this is probably harmless): EPERM: operation not permitted, lstat 'D:weexelectron-vuemy-projectnode_modulesfseventsnode_modules'
npm WARN treadmill@1.0.0 No repository field.
npm WARN treadmill@1.0.0 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})

npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! ref@1.3.5 install: node-gyp rebuild
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the ref@1.3.5 install 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! C:Userswin 10AppDataRoamingnpm-cache_logs2019-07-20T02_52_33_358Z-debug.log

求各位大佬指点

阅读 3.1k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏