followed up from previous post

I installed truffle however this is what I get

PS C:\Users\user> npm install -g truffle C:\Users\user\AppData\Roaming\npm\truffle -> C:\Users\user\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.j s + [email protected] updated 1 package in 3.018s

PS C:\Users\user> truffle version truffle : The term 'truffle' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + truffle version + ~~~~~~~ + CategoryInfo : ObjectNotFound: (truffle:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

I have no idea why this is happening, I could run the commands if I went to node_modules/.bin/truffle but what is conflicting the commands right now?


1 Answer 1


Set the path in environment variables:

Environment Variables

Not the answer you're looking for? Browse other questions tagged or ask your own question.