All good I solved it by cleaning some stuff up and I’m now running newest versions of everything… I’ll just keep researching trufflesuite on my own plenty of projects have good discords with lots of support so I’ll ask my questions there
Same issue here, had to run powerShell “as Administrator” to set local machine from unsigned (then no scripts are allowed) to (best choice): RemoteSigned by
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
I had to close Ganache to be able to remove the build directory…
Hi @Nile if you installed truffle locally you don’t need to change the permission your node modules should have the correct permission, but even if you have installed this modules globally your user should be able to access it
cool, thanks Gabba good to know
When I try and install Truffle this is what I am getting. Anybody have any ideas on how to fix it?
Thanks
I got Truffle working for a few minutes, then it all of a sudden said it could not be found. I tried to reinstall it but now I am getting this.
Hi JeffE,
Check Albin post here Post. Maybe try to reinstall npm (avoid node 14, ganache-cli don’t work with this version).
Godel,
Thank you for the response!
I just tried that but when I try to install truffle I still get
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
It’s just warning saying that truffle 5.0.42 uses a deprecated version of mkdirp package. From 5.1.23 version this package was removed from truffle. Normally that will not stop you from using truffle.
It is telling me that the truffle command is not found
Hi,
Thanks for reaching out with your queries.
Have you tried npm init
first?
It will initialize npm and create node_modules folder.
Hello,
Thanks for the response! When I tried npm init
it brought me somewhere to create a package.
It’s not related to the warning.
Are you able to run ganache-cli? If not, it’s probably a path issue.
In this case, you can follow the manual procedure of Albin’s link and reinstall truffle. Or try to redirect the path to the folder where you are installing your package.
If you want to redirect, try to get the folder by running this command npm config get --prefix.
Open or create a .profile file in ~ directory.
Put export PATH=THE FOLDER PATH/bin:$PATH inside .profile.
And finally run source ~/.profile.
I still get this error when I try and install Truffle.
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
I get another warning when i do npm install
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
Truffle still seems not to be working or downloading. Any ideas? Thanks
Do not think I was able to run ganache-cil. I will try and redirect the path now. Thanks!
Warnings are not errors. You can ignore them.
Check out this resource link: https://stackoverflow.com/questions/38148521/truffle-command-not-found-after-installation
Let me know.
So I followed the path and see that I have Truffle, just do not know why it is not letting me use the command still. It was about an hour ago then just started acting up.
No worries: Give one more try.
There might a small thing missing out. This will be a big learning curve.
go to Documents > create folder > npm init > install truffle -g