No luck with that either, thanks anyways. Any other ideas?
after installing truffle with npm, you can try to run truffle -v
and it should return the version of your truffle package, meaning that truffle has installed properly and its ready for being use.
If the command is not working, you can try with npx truffle -v
, the WARN messages are just warnings that some packages should upgrade, but this will not stop the functionality of truffle, so nothing to worry about them.
Carlos Z
After doing some research through some other forums and some trial & error, I found that if I downloaded a specific version of truffle (in my case 5.4.29), using the command npm install -g [email protected]
truffle would successfully install, do you think this solution will be good enough?
Thanks,
Yes, that should be enough, still let me know if it works for you.
Carlos Z
I got these errors when installing Truffle (on Macbook Pro). Seems like it works though but do you think it will be problematic at some point ?
Nothing to worry about, those are warning messages on modules used by the package you are installed.
Carlos Z
the problem is that later on, when I try to deploy the Helloworld contract, I get these errors and Iâm not sure how to fix them.
When Filip type âtruffle deployedâ in terminal then he gets node instead of cmd.
Why my terminal doesnât transform to node if I type that?
I have such an error:
Compilation failed. See above.
at C:\Users\pajak\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\compile-solidity\dist\run.js:64:1
at Generator.next (<anonymous>)
at fulfilled (C:\Users\pajak\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\compile-solidity\dist\run.js:4:43)
Truffle v5.5.22 (core: 5.5.22)
Node v16.16.0
How could I solve it?
Now I do not have compilation error.
But I cannot Deploy my erc20 token.
What can resolve it?
Could you share an screenshot of the complete windows error?
Carlos Z
I figured it out.
I reinstall truffle and it starts to work.
I did not have install, I do not why, I installed it before.
I have selected âselect default profileâ, then click âcommand promptâ. But it said " Unable to write into user settings. Please open the user settings to correct errors/warnings in it and try again. " as below on the right bottom of the first image. I then come to the what you can see in the second image. May I know what I should do next please?
Oh, I also read about truffles when I was in university. I was very interested in this subject, but we didnât touch it with my professors. In fact, we didnât touch many topics during our studies, but I needed there topics in the future during my work.
Below are the error itâs indicating:
âterminal.integrated.profiles.windowsâ:
âGit Bashâ
May I know what to do please? I would appreciate it if you could help!!
Below are the code for investigation:
{
"files.autoSave": "afterDelay"
"terminal.integrated.profiles.windows":{"Git Bash":{"path":"C:\\Program Files\\Git\\bin\\bash.exe"}, },
"terminal.integrated.defaultProfile.windows": "Git Bash"
}
SOLUTION:
Use --user
when installing.