-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[npm ERR! code EISGIT]: web3-providers-ws depends on websocket with ".git" folder. #2863
Comments
This got fixed with the latest version of Web3. |
@nivida can you please link the commit that fixes this? |
@PascalPrecht I think it was this one: b27eff4. I tried:
And I see the
web3's https://github.com/ethereum/web3.js/blob/1.x/packages/web3-providers-ws/package.json#L12 @nivida could the commit that bumped the websocket dep be cherry-picked to the |
Hey, glad you solved it! When can we expect a release with the mentioned fix? |
Is there a workaround for this? This is somewhere in my module tree as a dependency of a dependency and it completely breaks npm functionality. |
@chrisfosterelli I think if you add this
can you give it ago, do |
@joshstevens19 Thanks. The module isn't quite at the root level, tree is closer to this:
Looks like an existing Installation paths are not deterministic so this might break for others who install our project but that gets npm working at least for now without deleting the entire modules tree before each install. |
@nivida Any chance that this will get backported soon-ish after the release of 1.2.0? I'd be happy to submit a PR, but I'm having trouble building and testing everything locally... The |
So, it turns out the fix for the The problem with the |
@michaelsbradleyjr Ha, awesome, the newer version of npm did the trick. Thank you! |
Confirming fix: Environment node --version # v12.6.0 npm update -g npm
npm --version # should be 6.10.2
npm install # now the build works on web3@1.2.0 |
Can't confirm the fix in Bitbucket build pipeline. Anyone else experiencing this too?
|
This issue broke our CI pipeline. Resolved by upgrading to |
Confirmed fully fixed in 1.2.1, released 2019-08-06 |
* detect when instantiated ethers provider is passed as customProvider * handle raw RPC endpoint URL as customProvider * remove .vscode file * upgrade web3 to fix downstream issue with CI caused by this bug web3/web3.js#2863 * use web3 version 1.0.0-beta.55
After running bitcore build hundreds times, past few months I suddenly got this error.... I still don't know what happened, but @fulldecent fix helped |
This is a workaround for the following error: "/home/circleci/repo/plasma_framework/node_modules/ganache-core-sc/node_modules/web3-providers-ws/node_modules/websocket: Appears to be a git repo or submodule." Previously the work around deletes "node_modules/**/.git", now it goes further to delete all ".git" file under node_modules. ref: web3/web3.js#2863 (comment)
This is a workaround for the following error: "/home/circleci/repo/plasma_framework/node_modules/ganache-core-sc/node_modules/web3-providers-ws/node_modules/websocket: Appears to be a git repo or submodule." Previously the work around deletes "node_modules/**/.git", now it goes further to delete all ".git" file under node_modules. ref: web3/web3.js#2863 (comment)
This is a workaround for the following error: "/home/circleci/repo/plasma_framework/node_modules/ganache-core-sc/node_modules/web3-providers-ws/node_modules/websocket: Appears to be a git repo or submodule." Previously the work around deletes "node_modules/**/.git", now it goes further to delete all ".git" file under node_modules. ref: web3/web3.js#2863 (comment)
This is a workaround for the following error: "/home/circleci/repo/plasma_framework/node_modules/ganache-core-sc/node_modules/web3-providers-ws/node_modules/websocket: Appears to be a git repo or submodule." Previously the work around deletes "node_modules/**/.git", now it goes further to delete all ".git" file under node_modules. ref: web3/web3.js#2863 (comment)
This is a workaround for the following error: "/home/circleci/repo/plasma_framework/node_modules/ganache-core-sc/node_modules/web3-providers-ws/node_modules/websocket: Appears to be a git repo or submodule." Previously the work around deletes "node_modules/**/.git", now it goes further to delete all ".git" file under node_modules. ref: web3/web3.js#2863 (comment)
This is a workaround for the following error: "/home/circleci/repo/plasma_framework/node_modules/ganache-core-sc/node_modules/web3-providers-ws/node_modules/websocket: Appears to be a git repo or submodule." Previously the work around deletes "node_modules/**/.git", now it goes further to delete all ".git" file under node_modules. ref: web3/web3.js#2863 (comment)
I initially had this error, now I get this error --> npm ERR! 404 Not Found - GET https://registry.npmjs.org/TRUE - Not found |
Description
Expected behavior
After installing web3-providers-ws with npm, it should be possible to install other packages with npm.
Actual behavior
npm fails upon trying to install a second package, becuase
node_modules/web3-providers-ws/node_modules/websocket/.git
exists.A temporary workaround is to manually delete the .git-folder
Steps to reproduce the behavior
Error Logs
Versions
The text was updated successfully, but these errors were encountered: