suwu150
suwu150
采纳率44.3%
2017-02-16 11:24

npm使用时出错,不能够找到文件,提示文件找不到

已采纳

electron-react-boilerplate@0.10.0 start-hot /home/jkwu/WebstormProjects/mx-workstation
cross-env HOT=1 NODE_ENV=development electron -r babel-register -r babel-polyfill ./src/main.development

fs.js:640
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^

Error: ENOENT: no such file or directory, open '/home/jkwu/WebstormProjects/mx-workstation/node_modules/electron/path.txt'
at Error (native)
at Object.fs.openSync (fs.js:640:18)
at Object.fs.readFileSync (fs.js:508:33)
at Object. (/home/jkwu/WebstormProjects/mx-workstation/node_modules/electron/index.js:4:42)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

相关推荐