o2team / xcel

一个基于 Electron 和 Vue 的 Excel 数据过滤工具——凹凸实验室出品 https://aotu.io/notes/2016/11/15/xcel/
GNU General Public License v3.0
666 stars 100 forks source link

npm run dev出错 #1

Closed 0604hx closed 7 years ago

0604hx commented 7 years ago

执行完npm install后,

npm WARN xcel@1.3.0 No repository field.
npm WARN xcel@1.3.0 No license field.
npm WARN optional Skipping failed optional dependency /7zip-bin/7zip-bin-win:
npm WARN notsup Not compatible with your operating system or architecture: 7zip-bin-win@2.0.2
npm WARN optional Skipping failed optional dependency /7zip-bin/7zip-bin-linux:
npm WARN notsup Not compatible with your operating system or architecture: 7zip-bin-linux@1.0.3
npm WARN xcel@1.3.0 No repository field.

接着执行npm run dev,出现以下的错误信息:

starting electron...

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

          Error: ENOENT: no such file or directory, open '/nerve/workspace/nodejs/xcel/node_modules/electron-prebuilt/path.txt'
              at Error (native)
              at Object.fs.openSync (fs.js:640:18)
              at Object.fs.readFileSync (fs.js:508:33)
              at Object.<anonymous> (/nerve/workspace/nodejs/xcel/node_modules/electron-prebuilt/index.js:4:42)
              at Module._compile (module.js:541:32)
              at Object.Module._extensions..js (module.js:550:10)
              at Module.load (module.js:458:32)
              at tryModuleLoad (module.js:417:12)
              at Function.Module._load (module.js:409:3)
              at Module.require (module.js:468:17)

是否是我的electron没有正确安装?(我已经切换到淘宝npm源了)

谢谢

0604hx commented 7 years ago

问题已经解决!

现在看源码学习ing。我想请问一下LZ用的是什么IDE,我现在用的是VSCode(代码提示方面不是很好用,vue文件几乎没有js提示....)

JChehe commented 7 years ago

@0604hx 呃..我用的是 Sublime Text 3

0604hx commented 7 years ago

非常感谢!