Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Error log when running npm run serve as described on https://github.com/sugarlabs/musicblocks#how-to-set-up-a-local-server
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'serve' ]
2 info using npm@6.14.4
3 info using node@v10.19.0
4 verbose run-script [ 'preserve', 'serve', 'postserve' ]
5 info lifecycle musicblocks@3.2.0~preserve: musicblocks@3.2.0
6 info lifecycle musicblocks@3.2.0~serve: musicblocks@3.2.0
7 verbose lifecycle musicblocks@3.2.0~serve: unsafe-perm in lifecycle true
8 verbose lifecycle musicblocks@3.2.0~serve: PATH: /usr/share/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/me/SUGAR/musicblocks/node_modules/.bin:/home/me/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
9 verbose lifecycle musicblocks@3.2.0~serve: CWD: /home/shrey/SUGAR/musicblocks
10 silly lifecycle musicblocks@3.2.0~serve: Args: [ '-c',
10 silly lifecycle 'python -c "import os, sys; os.system(\'python -m SimpleHTTPServer 3000 --bind 127.0.0.1\') if sys.version_info.major==2 else os.system(\'python -m http.server 3000 --bind 127.0.0.1\');"' ]
11 info lifecycle musicblocks@3.2.0~serve: Failed to exec serve script
12 verbose stack Error: musicblocks@3.2.0 serve: `python -c "import os, sys; os.system('python -m SimpleHTTPServer 3000 --bind 127.0.0.1') if sys.version_info.major==2 else os.system('python -m http.server 3000 --bind 127.0.0.1');"`
12 verbose stack spawn ENOENT
12 verbose stack at ChildProcess.<anonymous> (/usr/share/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
12 verbose stack at ChildProcess.emit (events.js:198:13)
12 verbose stack at maybeClose (internal/child_process.js:982:16)
12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
13 verbose pkgid musicblocks@3.2.0
14 verbose cwd /home/me/SUGAR/musicblocks
15 verbose Linux 5.4.0-48-generic
16 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "serve"
17 verbose node v10.19.0
18 verbose npm v6.14.4
19 error code ELIFECYCLE
20 error syscall spawn
21 error file sh
22 error errno ENOENT
23 error musicblocks@3.2.0 serve: `python -c "import os, sys; os.system('python -m SimpleHTTPServer 3000 --bind 127.0.0.1') if sys.version_info.major==2 else os.system('python -m http.server 3000 --bind 127.0.0.1');"`
23 error spawn ENOENT
24 error Failed at the musicblocks@3.2.0 serve script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment