Open leah0206 opened 5 years ago
It looks that not all the node dependencies are installed correctly. Please try to delete node_modules
in the server
directory and run npm install
again and make sure you don't get any errors. Please run node --version
and let us know what node version you are using.
Hi, @angelxuanchang . Thanks for your help!
I have deleted node_modules
in the server
directory and run npm install
again. But I encountered the following problem:
ccs@ccs-MS-7996:~/minos-new/minos/server$ npm install
> sstk@github:smartscenes/sstk#3735e535dd4e7d7b006c197e14e9bdef356f28c8 postinstall /home/ccs/minos-new/minos/server/node_modules/sstk
> node getdata.js && npm run bootstrap
正克隆到 'metadata'...
fatal: unable to access 'https://github.com/smartscenes/sstk-metadata.git/': Failed to receive SOCKS4 connect request ack.
ln: Source file does not exist
ln: Source file does not exist
ln: Source file does not exist
ln: Source file does not exist
ln: Source file does not exist
ln: Source file does not exist
ln: ENOENT: no such file or directory, symlink 'suncg.planner5d.models.v1.csv' -> '/home/ccs/minos-new/minos/server/node_modules/sstk/server/static/data/suncg/suncg.planner5d.models.full.csv'
> sstk@0.6.0 bootstrap /home/ccs/minos-new/minos/server/node_modules/sstk
> lerna bootstrap --hoist
lerna info version 2.11.0
lerna info Bootstrapping 3 packages
lerna info lifecycle preinstall
lerna info Installing external dependencies
lerna info hoist Installing hoisted dependencies into root
lerna info hoist Pruning hoisted dependencies
lerna info hoist Finished pruning hoisted dependencies
lerna ERR! execute callback with error
lerna ERR! Error: Command failed: npm install
lerna ERR! npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ETIMEDOUT: request to https://registry.npmjs.org/body-parser failed, reason: connect ETIMEDOUT 104.16.21.35:443
lerna ERR! npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
lerna ERR! npm WARN deprecated filesaverjs@0.2.2: use 'file-saver' instead
lerna ERR! npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
lerna ERR! npm WARN deprecated constantinople@3.0.2: Please update to at least constantinople 3.1.1
lerna ERR! npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer
lerna ERR! npm WARN deprecated jscs-preset-wikimedia@1.0.1: Deprecated in favour of eslint-config-wikimedia. -- https://phabricator.wikimedia.org/T118941
lerna ERR! npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
lerna ERR! npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
lerna ERR! npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
lerna ERR! npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
lerna ERR! npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
lerna ERR! npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
lerna ERR! npm WARN deprecated hoek@0.7.6: The major version is no longer supported. Please update to 4.x or newer
lerna ERR! npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
lerna ERR! npm WARN deprecated hoek@5.0.4: This version is no longer maintained. Please upgrade to the latest version.
lerna ERR! npm ERR! Error while executing:
lerna ERR! npm ERR! /usr/bin/git ls-remote -h -t https://github.com/stanford-gfx/node-http-proxy.git
lerna ERR! npm ERR!
lerna ERR! npm ERR! fatal: unable to access 'https://github.com/stanford-gfx/node-http-proxy.git/': Failed to receive SOCKS4 connect request ack.
lerna ERR! npm ERR!
lerna ERR! npm ERR! exited with error code: 128
lerna ERR!
lerna ERR! npm ERR! A complete log of this run can be found in:
lerna ERR! npm ERR! /home/ccs/.npm/_logs/2018-12-26T03_00_44_868Z-debug.log
lerna ERR!
lerna ERR! at Promise.all.then.arr (/home/ccs/minos-new/minos/server/node_modules/execa/index.js:236:11)
{ Error: Command failed: npm install
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ETIMEDOUT: request to https://registry.npmjs.org/body-parser failed, reason: connect ETIMEDOUT 104.16.21.35:443
npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
npm WARN deprecated filesaverjs@0.2.2: use 'file-saver' instead
npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated constantinople@3.0.2: Please update to at least constantinople 3.1.1
npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer
npm WARN deprecated jscs-preset-wikimedia@1.0.1: Deprecated in favour of eslint-config-wikimedia. -- https://phabricator.wikimedia.org/T118941
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated hoek@0.7.6: The major version is no longer supported. Please update to 4.x or newer
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated hoek@5.0.4: This version is no longer maintained. Please upgrade to the latest version.
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t https://github.com/stanford-gfx/node-http-proxy.git
npm ERR!
npm ERR! fatal: unable to access 'https://github.com/stanford-gfx/node-http-proxy.git/': Failed to receive SOCKS4 connect request ack.
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ccs/.npm/_logs/2018-12-26T03_00_44_868Z-debug.log
at Promise.all.then.arr (/home/ccs/minos-new/minos/server/node_modules/execa/index.js:236:11)
at process._tickCallback (internal/process/next_tick.js:68:7)
code: 1,
killed: false,
stdout: '',
stderr:
'npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ETIMEDOUT: request to https://registry.npmjs.org/body-parser failed, reason: connect ETIMEDOUT 104.16.21.35:443\nnpm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.\nnpm WARN deprecated filesaverjs@0.2.2: use \'file-saver\' instead\nnpm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade\nnpm WARN deprecated constantinople@3.0.2: Please update to at least constantinople 3.1.1\nnpm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer\nnpm WARN deprecated jscs-preset-wikimedia@1.0.1: Deprecated in favour of eslint-config-wikimedia. -- https://phabricator.wikimedia.org/T118941\nnpm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade\nnpm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.\nnpm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.\nnpm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\nnpm WARN deprecated node-uuid@1.4.8: Use uuid module instead\nnpm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\nnpm WARN deprecated hoek@0.7.6: The major version is no longer supported. Please update to 4.x or newer\nnpm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)\nnpm WARN deprecated hoek@5.0.4: This version is no longer maintained. Please upgrade to the latest version.\nnpm ERR! Error while executing:\nnpm ERR! /usr/bin/git ls-remote -h -t https://github.com/stanford-gfx/node-http-proxy.git\nnpm ERR! \nnpm ERR! fatal: unable to access \'https://github.com/stanford-gfx/node-http-proxy.git/\': Failed to receive SOCKS4 connect request ack.\nnpm ERR! \nnpm ERR! exited with error code: 128\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR! /home/ccs/.npm/_logs/2018-12-26T03_00_44_868Z-debug.log\n',
failed: true,
signal: null,
cmd: 'npm install',
timedOut: false,
exitCode: 1 }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sstk@0.6.0 bootstrap: `lerna bootstrap --hoist`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sstk@0.6.0 bootstrap script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ccs/.npm/_logs/2018-12-26T03_00_44_924Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sstk@github:smartscenes/sstk#3735e535dd4e7d7b006c197e14e9bdef356f28c8 postinstall: `node getdata.js && npm run bootstrap`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sstk@github:smartscenes/sstk#3735e535dd4e7d7b006c197e14e9bdef356f28c8 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ccs/.npm/_logs/2018-12-26T03_00_45_257Z-debug.log
I tried to run NODE_TLS_REJECT_UNAUTHORIZED=0 npm install
. But it also didn't work!
Please help me!
Thank you very much!
It looks like you are having trying using git clone to access some dependencies that are pulled down using https. You can try to manually test git clone https://github.com/smartscenes/sstk-metadata.git
to see if you get the same error (according to some websites, you can try doing sudo
to see if that error goes away)
did you solve the problem ? I've encountered the same problem about SocketIO as you
Hello,@angelxuanchang I wanted to try to run python3 -m minos.tools.pygame_client. However, I encountered the following problem:
$ sudo python3 -m minos.tools.pygame_client --empty_room pygame 1.9.6 Hello from the pygame community. https://www.pygame.org/contribute.html fatal: Not a git repository (or any parent directory):.git Traceback (most recent call last): File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/usr/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/project/minos/minos-master/minos/tools/pygame_client.py", line 457, in
main() File "/usr/project/minos/minos-master/minos/tools/pygame_client.py", line 415, in main sim = Simulator(vars(args)) File "/usr/project/minos/minos-master/minos/lib/Simulator.py", line 110, in init cwd=stk_sim_path).rstrip(), File "/usr/lib/python3.6/subprocess.py", line 356, in check_output **kwargs).stdout File "/usr/lib/python3.6/subprocess.py", line 438, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['git', 'rev-parse', '--short', 'HEAD']' returned non-zero exit status 128. 2019-08-23 10:09:59,795 INFO sim00:Stopping the simulator 2019-08-23 10:09:59,796 INFO Counter() 2019-08-23 10:09:59,796 INFO sim00:Stopping child servers 2019-08-23 10:09:59,796 INFO sim00:Stopped child servers 2019-08-23 10:09:59,796 INFO sim00:Simulator killed.
PLease give me some help. Thank you very much.
Hello, I wanted to try to run
python3 -m minos.tools.pygame_client
. However, I encountered the following problem:Then I checked the log. simserver.log
I have followed the 'I get an error from the socketIO_client package' in https://github.com/minosworld/minos/blob/master/FAQ.md. But it didn't work. Please give me some help! Thank you very much!