**Windows 11 Truffle Installation Guide** #5089
Replies: 9 comments 19 replies
-
Am still getting the Visual Studio error after running the commands I already got Chocolatey and visual studio |
Beta Was this translation helpful? Give feedback.
-
It kinda solved the problem but it can't see the truffle version: |
Beta Was this translation helpful? Give feedback.
-
Thank you so much that fixed the problem! |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Also having issues installing truffle. node v18.13.0 Install has warnings but no errors, but version check fails: Any advice on how to resolve? |
Beta Was this translation helpful? Give feedback.
-
Kindly check if truffle had been installed by checking the truffle version |
Beta Was this translation helpful? Give feedback.
-
I solved mine and what i did was reinstall node |
Beta Was this translation helpful? Give feedback.
-
Truffle Installation guide for Windows 11 22H2
Last tested: November 17th, 2022
Requirements:
Step 1. Install Node.js Version 18
Install Node.js with the official Windows installation MSI file from Nodejs.org:
https://nodejs.org/dist/v18.12.1/node-v18.12.1-x64.msi
This complete .msi installer will install Node.js (NPM) and add the NPM command to your system's PATH. This .msi will also install dependencies and compilers needed to install Truffle:
Python Build tools, Visual Studio C++ build tools, etc.
Click "next" on each prompt and leave all settings to its default install configuration
Step 2. Install Python and Windows Build tools
The second half of the Node.js .msi installer package comes with the dependencies and compiling tools necessary to install Truffle. When you reach this page please make sure the option is "checked" to install these tools.
After the .msi installer has completed, a new window will pop-up to install python and the build tools.
type "enter" into your terminal to complete installation
Step 3. Install Truffle using NPM with the -g flag in your terminal
To verify if Node.js is installed correctly, open a Powershell terminal with administrative privileges. You can do this by right clicking the Windows Start button and selecting "Windows Powershell (Admin)"
Enter these commands into your Powershell Terminal:
node -v
andnpm -v
these commands should return the Node.js and NPM version if installed correctly.Next, lets install the latest version of Truffle on your computer. We will use -g flag to install Truffle globally on your computer. This means that you can use the
truffle
command inside a terminal from any location or directory.To install Truffle enter this command in your Powershell terminal:
npm install -g truffle
During installation you may come across various warnings, these are typical and everything should run fine as long as there are no error messages.
To verify to see if the Truffle installation is successful, enter this command in your Powershell terminal:
truffle version
The terminal should return the installed Truffle version as well as Node.js information if the installation was successful.
Beta Was this translation helpful? Give feedback.
All reactions