**Ubuntu 22 (Jammy Jellyfish) Truffle Install Guide** #5732
Unanswered
apdan510
asked this question in
Installation
Replies: 1 comment
-
Thanks a lot |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
last tested: November 23, 2022
The steps below have been tested on:
Ubuntu 22.04.1 LTS (Jammy Jellyfish)
Ubuntu 20.04.5 LTS (Focal Fossa)
Requirements:
Node.js v14-v18 (NPM)
Step 1. Install Node.js via NVM
To avoid permission errors when installing globally, Node.js (NPM) recommends installing Node.js with a Node version manager (NVM) on Mac and Linux Operating systems
Install a node version manager (NVM):
Open a new terminal (you can find terminal in "Show Applications")
Enter this command to install NVM:
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
When the NVM script finishes downloading you will receive a completion message that will instruct you to close and reopen your terminal to begin using NVM.
Step 2. Verify NVM installation
After you close and open a new terminal, verify that NVM works by entering the command:
nvm
Step 3. Install a Truffle compatible version of Node.js
Enter this command into your terminal:
nvm install 18
Verify that NPM is installed by entering:
npm
It is good practice to run the
npm doctor
command after you set up your Node.js environment on your computer.Npm doctor checks your Npm installation if the requirements to manage your JavaScript packages are configured and installed correctly. Since we are using a compatible version of NPM to install truffle (Node 18 , Npm 8) Npm doctor may alert you that your Npm installation to needs an update. This is because Npm doctor always looks at the latest version of Npm version available. You can ignore this warning and continue onto installing Truffle in the next step.
Step 4. Install Truffle
Enter this command in a new terminal:
npm install -g truffle
You may see some warnings or conflicts, this is typical and should work normally as long as there are no errors.
Step 5. Verify that Truffle is installed
Enter this command to verify the Truffle installation:
truffle version
Beta Was this translation helpful? Give feedback.
All reactions