truffle does not work after insall using (npm install -g truffle) command . this message appears "removed 5 packages, changed 1105 packages, and audited 1074 packages in 28m

81 packages are looking for funding run npm fund for details

47 vulnerabilities (24 low, 18 moderate, 5 high)

To address issues that do not require attention, run: npm audit fix

Some issues need review, and may require choosing a different dependency.

Run npm audit for details."

and when using any command with truffle this appears "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.

  • Does this ethereum.stackexchange.com/a/37300 work for you?
    – Ismael
    Commented Sep 20, 2021 at 0:47
  • @Ismael no solution of them work
    – Esraa
    Commented Sep 26, 2021 at 17:14
  • It might be that node isn't installed properly or there's something wrong in the PATH environment. I'd suggest to try using a tool like nvm or similar to manage node installation for you user.
    – Ismael
    Commented Sep 27, 2021 at 0:10
  • finally, it worked by using this command before installation : Set-ExecutionPolicy Unrestricted
    – Esraa
    Commented Sep 28, 2021 at 17:11


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.