tolmasky / demokit

DemoKit is a Library and Electron app for building product demos and tutorials using web technologies
MIT License
428 stars 17 forks source link

Error, cannot find electron/path.txt #13

Open ghost opened 7 years ago

ghost commented 7 years ago

installed demokit, ran demokit new foo which worked fine, but running demokit ./foo/index.js gives this error:

Error: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/demokit/electron/node_modules/electron/path.txt'

tolmasky commented 7 years ago

Could you tell me npm version, node version, and OS version.

Thanks,

Francisco

EcutDavid commented 7 years ago

Same to me, MAC version: 10.12.1 npm 2.14.2 node 4.0.0

Thanks!

wmhafiz commented 7 years ago

Same here! Solved it by not using sudo when installing npm kit globally (sudo npm i -g demokit )

my environment

npm 5.4.0
node 8.0.0
nahmjordan commented 7 years ago

Not sure about my logic but I noticed that demokit would mentioning version @1.0.0 so I specified the latest version (@7.0.0 in this case) and now the demokit window opens when I run:

demokit ./path/to/demo-file.js

tolmasky commented 7 years ago

It was installing 1.0.0 from just doing npm install demekit?

nahmjordan commented 7 years ago

@tolmasky my terminal command was "sudo npm install -g demokit" and when I googled pieces of the errors I was getting I found https://github.com/websockets/bufferutil/issues/22 mentioning out of date dependencies. I saw in my error response " demokit@1.0.0 install: node-gyp rebuild " and " Failed at the demokit@1.0.0 install script. " so with what limited knowledge I have I tried "sudo npm install -g demokit@7.0.0" and it seems like things are running correctly now.

tolmasky commented 7 years ago

This is a lot of help, thanks. If you happen to have time, could you answer these questions:

  1. Had you tried installing demekit in the past? (maybe for some reason 1.0.0 was cached on your machine?)
  2. If you npm uninstall -g demokit and then npm install -g demokit@latest, does it work?
  3. If you npm uninstall -g demokitand then just try npm install -g demokit, doe sit continue to not work?

I'm just trying to figure out why it was giving you 1.0.0 instead of 7.0.0.

nahmjordan commented 7 years ago

Sorry for the late reply!

  1. no this would be the first install
  2. demokit still works
  3. demokit installs with messages containing the 7.0.0 version number and appears to work properly