I'm using ubuntu and installed node via nvm.
nvm --version
0.39.1
nvm list
v16.13.2
-> v17.4.0
default -> v16.13.2 (-> N/A)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v17.4.0) (default)
stable -> 17.4 (-> v17.4.0) (default)
lts/* -> lts/gallium (-> N/A)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.24.1 (-> N/A)
lts/erbium -> v12.22.9 (-> N/A)
lts/fermium -> v14.18.3 (-> N/A)
lts/gallium -> v16.13.2 (-> N/A)
npm --version
8.3.2
I have $NVM_DIR configured:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This load>
export PATH="$PATH:/home/helio/.nvm/versions/node/v17.4.0/bin"
I installed Ganache with:
npm install --global ganache
and it's under:
.nvm/versions/node/v17.4.0/bin/ganache
But when I run for example:
ganache --port 8545 --gasLimit 12000000 --accounts 10 --hardfork istanbul --mnemonic brownie
I get:
bash: /home/helio/.nvm/versions/node/v17.4.0/bin/ganache: Permission denied
When I look up for this error the solution always ends up installing node via nvm so everything will go under .nvm.
Can someone help me understand what am I missing?