Description
git clone repo and then npm run setup gives error
Steps to reproduce
$ git clone --depth=1 https://github.com/react-boilerplate/react-boilerplate-typescript.git web-chat
$ npm run setup
Screenshots
NA
Versions
- React-Boilerplate:4.1.0
- Node/NPM:v4.2.6
- Browser:NA
Details
npm run setup
[email protected] presetup /home/syed/data/code/skunkworks/web-chat
npm i chalk shelljs
▄ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine [email protected]: wanted: {"node":">=8"} (current: {"node":"4.2.6","npm":"3.5.2"})
loadDep:supports-color → ▐ ╢██████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine [email protected]: wanted: {"node":">=8"} (current: {"node":"4.2.6","npm":"3.5.2"})
loadDep:color-convert → 3 ▌ ╢██████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:has-flag → 304 ▌ ╢█████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
[email protected] setup /home/syed/data/code/skunkworks/web-chat
node ./internals/scripts/setup.js
/home/syed/data/code/skunkworks/web-chat/internals/scripts/setup.js:3
const { exec } = require('child_process');
^
SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
npm ERR! Linux 4.15.0-50-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "setup"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] setup: node ./internals/scripts/setup.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] setup script 'node ./internals/scripts/setup.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the react-boilerplate-typescript package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./internals/scripts/setup.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs react-boilerplate-typescript
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls react-boilerplate-typescript
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/syed/data/code/skunkworks/web-chat/npm-debug.log
Log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'run', 'setup' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'presetup', 'setup', 'postsetup' ]
5 info lifecycle [email protected]presetup: [email protected]
6 verbose lifecycle [email protected]presetup: unsafe-perm in lifecycle true
7 verbose lifecycle [email protected]presetup: PATH: /usr/share/npm/bin/node-gyp-bin:/home/syed/data/code/skunkworks/web-chat/node_modules/.bin:/home/syed/bin:/home/syed/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/mssql-tools/bin:/opt/mssql-tools/bin:/opt/mssql-tools/bin:/opt/mssql-tools/bin:/opt/mssql-tools/bin:/opt/mssql-tools/bin:/opt/mssql-tools/bin
8 verbose lifecycle [email protected]presetup: CWD: /home/syed/data/code/skunkworks/web-chat
9 silly lifecycle [email protected]presetup: Args: [ '-c', 'npm i chalk shelljs' ]
10 silly lifecycle [email protected]presetup: Returned: code: 0 signal: null
11 info lifecycle [email protected]setup: [email protected]
12 verbose lifecycle [email protected]setup: unsafe-perm in lifecycle true
13 verbose lifecycle [email protected]setup: PATH: /usr/share/npm/bin/node-gyp-bin:/home/syed/data/code/skunkworks/web-chat/node_modules/.bin:/home/syed/bin:/home/syed/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/mssql-tools/bin:/opt/mssql-tools/bin:/opt/mssql-tools/bin:/opt/mssql-tools/bin:/opt/mssql-tools/bin:/opt/mssql-tools/bin:/opt/mssql-tools/bin
14 verbose lifecycle [email protected]setup: CWD: /home/syed/data/code/skunkworks/web-chat
15 silly lifecycle [email protected]setup: Args: [ '-c', 'node ./internals/scripts/setup.js' ]
16 silly lifecycle [email protected]setup: Returned: code: 1 signal: null
17 info lifecycle [email protected]~setup: Failed to exec setup script
18 verbose stack Error: [email protected] setup: node ./internals/scripts/setup.js
18 verbose stack Exit status 1
18 verbose stack at EventEmitter. (/usr/share/npm/lib/utils/lifecycle.js:232:16)
18 verbose stack at emitTwo (events.js:87:13)
18 verbose stack at EventEmitter.emit (events.js:172:7)
18 verbose stack at ChildProcess. (/usr/share/npm/lib/utils/spawn.js:24:14)
18 verbose stack at emitTwo (events.js:87:13)
18 verbose stack at ChildProcess.emit (events.js:172:7)
18 verbose stack at maybeClose (internal/child_process.js:821:16)
18 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
19 verbose pkgid [email protected]
20 verbose cwd /home/syed/data/code/skunkworks/web-chat
21 error Linux 4.15.0-50-generic
22 error argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "setup"
23 error node v4.2.6
24 error npm v3.5.2
25 error code ELIFECYCLE
26 error [email protected] setup: node ./internals/scripts/setup.js
26 error Exit status 1
27 error Failed at the [email protected] setup script 'node ./internals/scripts/setup.js'.
27 error Make sure you have the latest version of node.js and npm installed.
27 error If you do, this is most likely a problem with the react-boilerplate-typescript package,
27 error not with npm itself.
27 error Tell the author that this fails on your system:
27 error node ./internals/scripts/setup.js
27 error You can get information on how to open an issue for this project with:
27 error npm bugs react-boilerplate-typescript
27 error Or if that isn't available, you can get their info via:
27 error npm owner ls react-boilerplate-typescript
27 error There is likely additional logging output above.
28 verbose exit [ 1, true ]