embarklabs / embark

Framework for serverless Decentralized Applications using Ethereum, IPFS and other platforms
https://framework.embarklabs.io/
MIT License
3.79k stars 495 forks source link

npm ERR! code EISGIT when using embark as dependency #2047

Open 3esmit opened 5 years ago

3esmit commented 5 years ago

Bug Report

Summary

When using Embark as a dependency, it refuses to install other things after install, because one of it's sub dependency uses websocket, which contains a .git folder. Manual fix is needed.

Current behavior

ricardo@ricardo-Z97-D3H:~/Documents/GitHub/status-im/ambassador.status.im$ npm install content-hash
npm ERR! code EISGIT
npm ERR! path /home/ricardo/Documents/GitHub/status-im/ambassador.status.im/node_modules/remix-simulator/node_modules/websocket
npm ERR! git /home/ricardo/Documents/GitHub/status-im/ambassador.status.im/node_modules/remix-simulator/node_modules/websocket: Appears to be a git repo or submodule.
npm ERR! git     /home/ricardo/Documents/GitHub/status-im/ambassador.status.im/node_modules/remix-simulator/node_modules/websocket
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ricardo/.npm/_logs/2019-11-12T15_27_42_959Z-debug.log
ricardo@ricardo-Z97-D3H:~/Documents/GitHub/status-im/ambassador.status.im$ rm -rf /home/ricardo/Documents/GitHub/status-im/ambassador.status.im/node_modules/remix-simulator/node_modules/websocket/.git/
ricardo@ricardo-Z97-D3H:~/Documents/GitHub/status-im/ambassador.status.im$ npm install content-hash
npm ERR! code EISGIT
npm ERR! path /home/ricardo/Documents/GitHub/status-im/ambassador.status.im/node_modules/remix-tests/node_modules/websocket
npm ERR! git /home/ricardo/Documents/GitHub/status-im/ambassador.status.im/node_modules/remix-tests/node_modules/websocket: Appears to be a git repo or submodule.
npm ERR! git     /home/ricardo/Documents/GitHub/status-im/ambassador.status.im/node_modules/remix-tests/node_modules/websocket
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ricardo/.npm/_logs/2019-11-12T15_28_11_128Z-debug.log
ricardo@ricardo-Z97-D3H:~/Documents/GitHub/status-im/ambassador.status.im$ rm -rf /home/ricardo/Documents/GitHub/status-im/ambassador.status.im/node_modules/remix-tests/node_modules/websocket/.git
ricardo@ricardo-Z97-D3H:~/Documents/GitHub/status-im/ambassador.status.im$ npm install content-hash
npm WARN remix-tests@0.1.1 requires a peer of yo-yoify@latest but none is installed. You must install peer dependencies yourself.
npm WARN tsutils@3.17.1 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/jest-haste-map/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.0.7 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/embark-watcher/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

+ content-hash@2.5.0
added 3 packages from 31 contributors and audited 5118972 packages in 12.781s
found 91 vulnerabilities (88 low, 2 moderate, 1 high)
  run `npm audit fix` to fix them, or `npm audit` for details
ricardo@ricardo-Z97-D3H:~/Documents/GitHub/status-im/ambassador.status.im$ 

How to reproduce

npm install embark && npm install;

Expected behavior

no errors in post installs.

If you encounter an error, please create a logfile using the following command and post the output here

vladimirmyshkovski commented 4 years ago

The same error