Here is what i've done in a blank directory:
$ truffle unbox react $ npm install @openzeppelin/contracts $ npm install @openzeppelin/test-helpers $ npm install @truffle/hdwallet-provider
Then, i have create a .gitignore (in root directory):
build node_modules client/src/contracts
I have run:
$ git add . $ git commit -m "message"
And i have pushed this local git to a github repository
I have cloned the github repository on a second computer.
I need to run this commands again to make runnable my project on the second computer:
$ npm install @openzeppelin/contracts $ npm install @openzeppelin/test-helpers $ npm install @truffle/hdwallet-provider
My question is how can i avoid to run this commands ? I have tried to run "npm install" but it does not work. I have no package.json at the root of my project.
Have i made something wrong ?