Share via

Blockchain Development - Missing Project Files relating to Truffle

Jason Jones 0 Reputation points
2025-01-01T20:48:59.1633333+00:00

Hi,

I'm busy with the Blockchain Development training course, and I am facing issues related to this part: https://learn.microsoft.com/en-us/training/modules/blockchain-solidity-ethereum-smart-contracts/4-truffle-for-vs-code

I installed Node.js (the version that Trufflle in Visual Code extensions requires). I also have Git and npm installed. I installed the Truffle extension and Ganache too.

In the learning material, it shows more project files, that are critical to the program: enter image description here

I followed the instructions, but I am missing quite a bit of project files:

enter image description here

How do I fix this?

This question is related to the following Learning Module

Azure | Azure Training

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Anonymous
    2025-01-02T06:39:22.35+00:00

    Hi Jason Jones,

    Thank you for reaching out to Microsoft Q & A forum. 

    It looks like some of the project files were not generated. Here’s how you can resolve this: 

    1.Verify Dependencies: Ensure Node.js, npm, Git, and Truffle are installed and compatible. Run node -v, npm -v, git --version, and truffle version to confirm. 

    2.Install Dependencies: Navigate to the project folder in the terminal and run npm install to install any missing packages. 

    3.Recreate the Project: In VS Code, open the Command Palette, search for Truffle: New Solidity Project, select "Create basic project," and choose an empty directory(New Solidity Project). 

    4.Fallback Option: Use "truffle init" in the terminal to create the project structure as an alternative. 

    We have attempted to recreate the project on our end, and everything seems to be functioning correctly. 

    Screen shot for your reference: 

    User's image

    Please feel free to contact us if you have any additional questions.     

    If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.