Experience-Monks / devtool

[OBSOLETE] runs Node.js programs through Chromium DevTools
MIT License
3.77k stars 150 forks source link

electron-prebuilt postinstall script not finishing #67

Open aleclarson opened 8 years ago

aleclarson commented 8 years ago

It seems the postinstall script of electron-prebuilt sometimes fails to complete, resulting in a missing configuration file.

> devtool

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

  Error: ENOENT: no such file or directory, open '/Users/aleclarson/devtool/node_modules/electron-prebuilt/path.txt'
    at Error (native)
    at Object.fs.openSync (fs.js:549:18)
    at Object.fs.readFileSync (fs.js:397:15)
    at Object.<anonymous> (/Users/aleclarson/devtool/node_modules/electron-prebuilt/index.js:4:42)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)

You can get around this using:

cd $HOME/devtool/node_modules/electron-prebuilt
sudo node install.js

Is there something that can be done to automate this?

Or is this issue the responsibility of electron-prebuilt contributors?

mattdesl commented 8 years ago

Do you have the error logs from when the install failed? Does it happen every time you npm install devtool -g? I haven't seen this and I'm not able to reproduce it.

If it persists with the latest version of devtool (2.0.1), try posting a new issue in electron-prebuilt.