generator-electron-naive icon indicating copy to clipboard operation
generator-electron-naive copied to clipboard

Error is thrown at npm run dev

Open ns23 opened this issue 8 years ago • 8 comments

`

[email protected] dev /vagrant/youtube-downloader

node ./node_modules/.bin/gulp dev

[06:52:22] Using gulpfile /vagrant/youtube-downloader/gulpfile.js [06:52:22] Starting 'dev'... [06:52:23] 'dev' errored after 1.17 s [06:52:23] Error: Command failed: node ./node_modules/.bin/electron ./src/

at ChildProcess.exithandler (child_process.js:270:12)
at emitTwo (events.js:125:13)
at ChildProcess.emit (events.js:213:7)
at maybeClose (internal/child_process.js:921:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

```

ns23 avatar Jul 31 '17 07:07 ns23

I just tried, it's working. Can you provide more error information?

leftstick avatar Jul 31 '17 09:07 leftstick

I am using vagrant for development. OS is Ubuntu 14.04. If i run node ./node_modules/.bin/electron ./src/ in terminal it runs successfully. but with npm run dev it fails.. I have attached gulpfile.js . If you need any more information .please let me know gulpfile.txt

ns23 avatar Jul 31 '17 11:07 ns23

That's weird! What is the version of node.js you are using?

leftstick avatar Aug 01 '17 02:08 leftstick

I am using node v8.2.1

ns23 avatar Aug 02 '17 04:08 ns23

As described in npm doc run-script, see below:

screen shot 2017-08-02 at 4 02 39 pm

npm run dev is equivalent to node_modules/.bin/gulp dev. What is the error? Caused by gulpfile.js? Please provide full error message

leftstick avatar Aug 02 '17 08:08 leftstick

error

i created new project named naive and then ran npm run dev command..i got error as shown in the image. Do you want me to lower node version to 6(stable) and check if its giving error on my system?

gulpfile.txt package.txt

ns23 avatar Aug 04 '17 08:08 ns23

@ns23 can you try node ./node_modules/.bin/electron ./src/ in CLI to see if this command working? I don't have a ubuntu env, need your help for confirming this issue

leftstick avatar Aug 04 '17 08:08 leftstick

coomand is executed successfully...window appers ..but when i press alt + tab,window disappears

error_log-2017-08-04_14 30

ns23 avatar Aug 04 '17 09:08 ns23