menu
Channels
# All channels
view-forward
# General
view-forward
# Drizzle
view-forward
# Ganache
view-forward
# Truffle
view-forward
# Truffle Debugger
view-forward
# Truffle Teams
view-forward
Team

Unable to upgrade Truffle

September 5, 2020 at 3:42am

Unable to upgrade Truffle

September 5, 2020 at 3:42am
Hi,
I tried to update my Truffle version, currently I have v5.133 on ubuntu 18.04,
:~$ truffle version You can improve web3's peformance when running Node.js versions older than 10.5.0 by installing the (deprecated) scrypt package in your project Truffle v5.1.33 (core: 5.1.33) Solidity v0.5.16 (solc-js) Node v8.10.0 Web3.js v1.2.1
I used the following command to update truffle : :~$ sudo npm install -g truffle [sudo] password for zulfi: loadDep:original-require ▄ ╢██████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine [email protected]: wanted: {"node":">= 10.12.0"} (current: {"node":"8.10.0loadDep:yargs-unparser → ▐ ╢█████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine [email protected]: wanted: {"node":">=10"} (current: {"node":"8.10.0loadDep:yargs-unparser → ▐ ╢█████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine [email protected]: wanted: {"node":">=10"} (current: {"nodeloadDep:yargs-unparser → ▄ ╢█████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine [email protected]: wanted: {"node":">=10"} (current: {"node":"8.10.0","nloadDep:fsevents → addNam ▄ ╢█████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine [email protected]: wanted: {"node":"^8.16.0 || ^10.6.0 || >=11.0.0"} (cloadDep:path-exists → 304 ▀ ╢██████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine [email protected]: wanted: {"node":">=10"} (current: {"node":"8.10.0loadDep:p-locate → reques ▀ ╢██████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine [email protected]: wanted: {"node":">=10"} (current: {"node":"8.10.0","loadDep:p-limit → 304 ▐ ╢██████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine [email protected]: wanted: {"node":">=10"} (current: {"node":"8.10.0","nloadDep:chalk → request ▐ ╢██████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine [email protected]: wanted: {"node":">=10"} (current: {"node":"8.10.0","npmnpm ERR! Linux 4.15.0-112-generic npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "truffle" npm ERR! node v8.10.0 npm ERR! npm v3.5.2 npm ERR! code EMISSINGARG
npm ERR! typeerror Error: Missing required argument #1 npm ERR! typeerror at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3) npm ERR! typeerror at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22) npm ERR! typeerror at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12) npm ERR! typeerror at /usr/share/npm/lib/install/deps.js:457:7 npm ERR! typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50 npm ERR! typeerror at /usr/share/npm/lib/fetch-package-metadata.js:37:12 npm ERR! typeerror at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5) npm ERR! typeerror at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7) npm ERR! typeerror at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20) npm ERR! typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50 npm ERR! typeerror This is an error with npm itself. Please report this error at: npm ERR! typeerror <http://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request: npm ERR! /home/zulfi/npm-debug.log
At the end I checked my Truffle version, but it remains the same, so Truffle not installed. :~$ truffle version You can improve web3's peformance when running Node.js versions older than 10.5.0 by installing the (deprecated) scrypt package in your project Truffle v5.1.33 (core: 5.1.33) Solidity v0.5.16 (solc-js) Node v8.10.0 Web3.js v1.2.1 [email protected]:~$
Some body please guide me.

September 7, 2020 at 8:31pm
Hello (zak100)! I suggest you try to update your node version to v10 if you can (it seems you are on v8.10.0). You should then be able to install Truffle without the sudo. Let me know if that helps!
  • reply
  • like

September 8, 2020 at 3:51am
Hi (faina) , thanks for your response. Are you talking about Node.js? Can you please provide me a good link for installing node.js for ubuntu 18.04? i am seeing several links.
  • reply
  • like
Hi, I can't install node.js version 10 on ubuntu 18.04, see the link, https://askubuntu.com/questions/1273438/how-to-install-node-js-version-10-on-ubuntu-18-04
  • reply
  • like
Somebody please guide me.
  • reply
  • like

September 8, 2020 at 3:10pm
(zak100) Try using a node version manager. nvm is the most common one I see. It makes it very easy to manage your node versions. https://github.com/nvm-sh/nvm
  • reply
  • like
That package will allow you to install different versions of Node and switch between them. Super handy!
  • reply
  • like

September 9, 2020 at 12:01am
(eggplantzzz) , I have to install node.js, the link you have written is talking about nvm, I can't understand, I executed the following command: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash, after that I can't understand which command I have to execute please guide me.
  • reply
  • like
, I have to install node.js, the link you have written is talking about nvm, I can't understand, I executed the following command: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash, after that I can't understand which command I have to execute please guide me.
  • reply
  • like

September 9, 2020 at 5:54pm
nvm is a utility that helps manage Node versions.
  • reply
  • like
After you install nvm, you should be able to change Node versions with syntax like nvm use 10 which will use Node version 10. It will also allow you to install new versions. I think the syntax is nvm install 10.
  • reply
  • like

September 10, 2020 at 3:24am
Hi, my friend, thanks a lot, i installed it. $ truffle version Truffle v5.1.43 (core: 5.1.43) Solidity v0.5.16 (solc-js) Node v10.22.0 Web3.js v1.2.1 https://itnext.io/nvm-the-easiest-way-to-switch-node-js-environments-on-your-machine-in-a-flash-17babb7d5f1b
like-fill
1
  • reply
  • like
God blesses you. Zulfi
  • reply
  • like

September 10, 2020 at 2:11pm
Glad it worked out (zak100)!
  • reply
  • like