Truffle Introduction

Hi @ImRONMAN

Run npm i truffle in your terminal.
Once done truffle --version and post the results here.

Regards,
Dani

Still appear as truffle command not found

Hi Filip! I am having some problems with Ganache. I successfully migrated the Helloworld contract to Ganache, but whenever I click on the “Contracts” tab and then click on “Helloworld”, Ganache crashes and I get just a blank screen. That happened yesterday, and I googled the problem online and somebody wrote that you just go back to Powershell and type in “trufffle migrate --reset”.

That solved the problem yesterday, but today I am encountering the same problem (blank screen) and entering “truffle migrate --reset” isn’t fixing the problem. Please help!

Hi @ImRONMAN

Once you followed the steps suggested in my previous post (to create a local node_module folder and install truffle), you have to run the commands by always adding ./node_modules/.bin/ before the command.

For example ./node_modules/.bin/truffle migrate --reset

Give it a try.
Dani

Hi @CaliCrypto22

Have you tried to reinstall Ganache from scratch?

Regards,
Dani

No, I haven’t. I will try that later today. Thanks!

I reinstalled Ganache and it seems to be working now. Thanks!

1 Like

@filip my system is not installing Truffle am getting attach error

After some time i got the attach

Hey @chim4us, you terminal says that it is missing writing access, try to sudo.
sudo npm install -g truffle.

Hi @dan-i
Am now getting below error

how you change the folder? to ethereum course advanced
thank you

Hi am not able to install truffle am getting below error

Hi @chim4us

You are inside the folder node_modules but that does not look correct.
Try the following:

Let me know how it goes.

Hi @christian20

Can you please elaborate your question?
In which folder are you?
The basic command to change a folder is cd

Keep me posted :slight_smile:
Dani

Now its below attach


I’m not sure if I did this correctly. No file shows up on Atom. How would I import my file to Atom?

Hi @Deitrich_Brown

You can drag and drop the project folder or open it as explained here: https://flight-manual.atom.io/getting-started/sections/atom-basics/#opening-modifying-and-saving-files

Awesome. Thanks @dan-i

1 Like


Came across this while trying to compile the code. I was wondering what may be the issue?

Hi @Deitrich_Brown

Can you share your migration file and you contract?