StarHackIt: React/Native/Node fullstack starter kit with authentication and authorisation, data backed by SQL, the infrastructure deployed with GruCloud
The Unlicense
1.28k
stars
184
forks
source link
Cannot npm start server both on Windows and Mac #247
> starhackit-api@2.4.0 prestart C:\Users\rkhunter\Documents\Development\starhackit\server
> npm run lint
> starhackit-api@2.4.0 lint C:\Users\rkhunter\Documents\Development\starhackit\server
> eslint src
ENOENT: no such file or directory, lstat 'C:\Users\rkhunter\Documents\Development\starhackit\server\src\**'
Error: ENOENT: no such file or directory, lstat 'C:\Users\rkhunter\Documents\Development\starhackit\server\src\**'
at Error (native)
at Object.fs.lstatSync (fs.js:994:11)
at Object.realpathSync (fs.js:1676:21)
at C:\Users\rkhunter\Documents\Development\starhackit\server\node_modules\eslint\lib\util\glob-util.js:159:24
at Array.forEach (native)
at Object.listFilesToProcess (C:\Users\rkhunter\Documents\Development\starhackit\server\node_modules\eslint\lib\util\glob-util.js:153:18)
at CLIEngine.executeOnFiles (C:\Users\rkhunter\Documents\Development\starhackit\server\node_modules\eslint\lib\cli-engine.js:702:35)
at Object.execute (C:\Users\rkhunter\Documents\Development\starhackit\server\node_modules\eslint\lib\cli.js:174:107)
at Object.<anonymous> (C:\Users\rkhunter\Documents\Development\starhackit\server\node_modules\eslint\bin\eslint.js:76:28)
at Module._compile (module.js:570:32)
cat npm-debug.log
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 npm@3.10.10
3 info using node@v6.10.2
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle starhackit-api@2.4.0~prestart: starhackit-api@2.4.0
6 verbose lifecycle starhackit-api@2.4.0~prestart: unsafe-perm in lifecycle true
7 verbose lifecycle starhackit-api@2.4.0~prestart: PATH: C:\Users\rkhunter\AppData\Roaming\nvm\v6.10.2\node_modules\npm\bin\node-gyp-bin;C:\Users\rkhunter\Documents\Development\starhackit\server\node_modules\.bin;C:\Users\rkhunter\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\rkhunter\bin;C:\cmder_mini\vendor\conemu-maximus5\ConEmu\Scripts;C:\cmder_mini\vendor\conemu-maximus5;C:\cmder_mini\vendor\conemu-maximus5\ConEmu;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\rkhunter\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files\Mercurial;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files (x86)\sbt\bin;C:\ProgramData\chocolatey\bin;C:\Program Files\Java\jdk1.8.0_121\bin;C:\libav-x86_64-w64-mingw32-11.7\usr\bin;C:\Program Files (x86)\Skype\Phone;C:\Users\rkhunter\AppData\Local\Programs\Python\Python36-32\Scripts;C:\Users\rkhunter\AppData\Local\Programs\Python\Python36-32;C:\Users\rkhunter\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Users\rkhunter\AppData\Local\atom\bin;C:\Users\rkhunter\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl
8 verbose lifecycle starhackit-api@2.4.0~prestart: CWD: C:\Users\rkhunter\Documents\Development\starhackit\server
9 silly lifecycle starhackit-api@2.4.0~prestart: Args: [ '/d /s /c', 'npm run lint' ]
10 silly lifecycle starhackit-api@2.4.0~prestart: Returned: code: 1 signal: null
11 info lifecycle starhackit-api@2.4.0~prestart: Failed to exec prestart script
12 verbose stack Error: starhackit-api@2.4.0 prestart: `npm run lint`
12 verbose stack Exit status 1
12 verbose stack at EventEmitter.<anonymous> (C:\Users\rkhunter\AppData\Roaming\nvm\v6.10.2\node_modules\npm\lib\utils\lifecycle.js:255:16)
12 verbose stack at emitTwo (events.js:106:13)
12 verbose stack at EventEmitter.emit (events.js:191:7)
12 verbose stack at ChildProcess.<anonymous> (C:\Users\rkhunter\AppData\Roaming\nvm\v6.10.2\node_modules\npm\lib\utils\spawn.js:40:14)
12 verbose stack at emitTwo (events.js:106:13)
12 verbose stack at ChildProcess.emit (events.js:191:7)
12 verbose stack at maybeClose (internal/child_process.js:886:16)
12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
13 verbose pkgid starhackit-api@2.4.0
14 verbose cwd C:\Users\rkhunter\Documents\Development\starhackit\server
15 error Windows_NT 10.0.14393
16 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
17 error node v6.10.2
18 error npm v3.10.10
19 error code ELIFECYCLE
20 error starhackit-api@2.4.0 prestart: `npm run lint`
20 error Exit status 1
21 error Failed at the starhackit-api@2.4.0 prestart script 'npm run lint'.
21 error Make sure you have the latest version of node.js and npm installed.
21 error If you do, this is most likely a problem with the starhackit-api package,
21 error not with npm itself.
21 error Tell the author that this fails on your system:
21 error npm run lint
21 error You can get information on how to open an issue for this project with:
21 error npm bugs starhackit-api
21 error Or if that isn't available, you can get their info via:
21 error npm owner ls starhackit-api
21 error There is likely additional logging output above.
22 verbose exit [ 1, true ]
cd server
rm -rf node_modules
npm i > npm-install.log
npm start > npm-start.log
cat npm-debug.log
node -v
npm -v