无法卸载并重新安装松露?

时间:2020-05-27 15:58:13

标签: linux blockchain solidity truffle

请帮我卸载命令/安装松露。

ubuntu@ubuntu-vbox:~$ sudo npm uninstall -g truffle 
[sudo] password for ubuntu: 
removed 82 packages in 1.793s

ubuntu@ubuntu-vbox:~$ truffle v
Truffle v4.0.4 (core: 4.0.4)
Solidity v0.4.18 (solc-js)

ubuntu@ubuntu-vbox:~$ sudo npm install -g truffle@4.1.15
npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
/home/ubuntu/.npm-global/bin/truffle -> /home/ubuntu/.npm-global/lib/node_modules/truffle/build/cli.bundled.js
+ truffle@4.1.15
added 82 packages in 9.783s

ubuntu@ubuntu-vbox:~$ truffle v
Truffle v4.0.4 (core: 4.0.4)
Solidity v0.4.18 (solc-js)

重新安装4.1.15版后,它仍然是Truffle v4.0.4版

1 个答案:

答案 0 :(得分:0)

https://ethereum.stackexchange.com/a/62956

我过去曾经使用过。

您将需要:

which truffle

将返回:

/ usr / local / bin / truffle

rm -f /usr/local/bin/truffle

然后继续重新安装过程。 我希望这有帮助。