Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Problem in installing truffle-environment #2264

Closed
amintalebi opened this issue Jul 30, 2019 · 11 comments
Closed

Problem in installing truffle-environment #2264

amintalebi opened this issue Jul 30, 2019 · 11 comments

Comments

@amintalebi
Copy link

 sudo npm install --save-dev truffle-environment
npm ERR! path solidity/node_modules/websocket
npm ERR! code EISGIT
npm ERR! git solidity/node_modules/websocket: Appears to be a git repo or submodule.
npm ERR! git    solidity/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/amin/.npm/_logs/2019-07-30T09_06_22_797Z-debug.log

@CruzMolina
Copy link
Contributor

hey @amintalebi can you try installing without sudo? I believe that's not the npm-recommended way of installing packages. We've noticed doing so tends to cause permissions-related issues.

@amintalebi
Copy link
Author

Hi,
I could not use it without sudo. I am using ubuntu bash on windows, that is the reason why!

I delete .git folders in order to get in done.

@gnidan
Copy link
Contributor

gnidan commented Jul 31, 2019

Looks like the same issue as web3/web3.js#2971, which has an open PR to fix. I haven't checked... does truffle-environment use websocket directly or is this error bubbling up from web3?

@DavidBurela
Copy link

@amintalebi not to hijack, but as an FYI you don't need to use sudo when using ubuntu on windows.

install node with nvm and it will make things easier. This is how I do it, but you man want to use nvm install lts/dubnium for latest LTS release rather than node 12.
https://davidburela.wordpress.com/2017/05/12/how-to-install-truffle-testrpc-on-ubuntu-or-windows-10-with-windows-subsystem-for-linux/

@amintalebi
Copy link
Author

Thank you so much @DavidBurela.
But I have already uninstalled Windows and installed Ubuntu instead :)))

@eggplantzzz
Copy link
Contributor

eggplantzzz commented Aug 22, 2019

@amintalebi Did you install Node using a node version manager? This is something that npm recommends and, as @DavidBurela said, it usually resolves these kinds of errors. Let me know how it goes if you try it!

@fainashalts
Copy link
Contributor

HI @amintalebi are you still having a problem with this? Let us know, thanks!

@amintalebi
Copy link
Author

No, not anymore.

@gnidan gnidan closed this as completed Sep 4, 2019
@migueljulve
Copy link

Hi, I got same problem, I resolved it installing truffle with Homebrew,
Installed nvm with brew, so node and npm, then truffle.

@Cublax
Copy link

Cublax commented Apr 1, 2022

@migueljulve @fainashalts Isn't it a problem to install with homebrew ? Is seems that they are a few versions late is that right ?

@cds-amal
Copy link
Member

cds-amal commented Apr 1, 2022

We cannot vouch for, nor support homebrew's installation of Truffle.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants