Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server crashes on starting the node app. Issue related to canvas node. #1529

Closed
naivedeveloper95 opened this issue Feb 24, 2020 · 3 comments
Closed

Comments

@naivedeveloper95
Copy link

naivedeveloper95 commented Feb 24, 2020

image

Here is the complete log of the issue.

0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]prestart: [email protected]
6 info lifecycle [email protected]
start: [email protected]
7 verbose lifecycle [email protected]start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]
start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\Dev\Phable\phable.api.backend.satyam.js\node_modules.bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\HashiCorp\Vagrant\bin;C:\ProgramData\chocolatey\bin;C:\Users\satyam.windows-build-tools\python27;C:\Users\satyam\AppData\Local\Programs\Python\Python38-32\Scripts;C:\Users\satyam\AppData\Local\Programs\Python\Python38-32;C:\Users\satyam\AppData\Local\Microsoft\WindowsApps;C:\Users\satyam\AppData\Roaming\npm;C:\Users\satyam\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\MongoDB\Server\4.2\bin;C:\MinGW\bin;C:\Program Files (x86)\Java\jre1.8.0_231\bin;C:\Octave\Octave-5.1.0.0\usr\bin;C:\libjpeg-turbo64\bin
9 verbose lifecycle [email protected]start: CWD: D:\Dev\Phable\phable.api.backend.satyam.js
10 silly lifecycle [email protected]
start: Args: [ '/d /s /c', 'node app' ]
11 silly lifecycle [email protected]start: Returned: code: 1 signal: null
12 info lifecycle [email protected]
start: Failed to exec start script
13 verbose stack Error: [email protected] start: node app
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:198:13)
13 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:198:13)
13 verbose stack at maybeClose (internal/child_process.js:982:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid [email protected]
15 verbose cwd D:\Dev\Phable\phable.api.backend.satyam.js
16 verbose Windows_NT 10.0.18363
17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
18 verbose node v10.16.3
19 verbose npm v6.9.0
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: node app
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

It runs fine on linux, but crashes on windows.

@bntzio
Copy link

bntzio commented Feb 29, 2020

I'm experiencing this issue as well.

@zbjornson
Copy link
Collaborator

Do you also have sharp.js installed? If so, see #930.

@naivedeveloper95
Copy link
Author

naivedeveloper95 commented May 1, 2020

Delete node_modules, package-lock.json, install sharp.js and also check if windows dev tools (If on Windows) are installed. This worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants