What the issue is, in broad strokes.
Please provide the shortest amount of steps to reproduce your issue.
What you expected to happen.
What actually happened. Please give examples and support it with screenshots, copied output or error messages.
truffle version):node --version):npm --version): i'm getting the following error when i run the command: truffle init
truffle : The term 'truffle' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:1
Environment
Operating system: Windows 10
node version (node --version):v10.15.3
npm version (npm --version):6.4.1
Hey @praneethvallabha, what version of truffle are you using?
did you install truffle globally? ( -g flag)
To avoid issues with versioning, try doing:
npx truffle init
That will make sure you are using the latest version (assuming you don't have installed binaries in your current folder).
Hey @praneethvallabha, what version of truffle are you using?
hai @CruzMolina I'm using [email protected]
@rgordon95: i installed truffle using npm install -g truffle.
Sorry, don't have much knowledge, so, i don't know if i answered your question correctly!!
@praneethvallabha IIRC, there are known Windows compatibility issues when installing and using truffle in a local project directory rather than globally.
Can you give npm un -g truffle && npm i -g truffle a shot and let us know if your error disappears?
@CruzMolina : I tried it, unfortunately no luck.
Sorry @praneethvallabha ! I'm not familiar enough w/ Windows these days, but maybe there's something in either of these links that will help: https://ethereum.stackexchange.com/questions/15970/truffle-for-windows-i-cant-make-it-work
https://medium.com/@m_mcclarty/setting-up-solidity-on-windows-10-993a1d2c615c
@CruzMolina : This information really helped.. Thank you
@adrianmcli : I that command, but it shows: "preparing download", and i left it all night long, but it still showing the same status, without any progress
@praneethvallabha From the initial error you are getting it seems like Truffle is not installing correctly. When you run a global install from the command line it installs properly?
@eggplantzzz : can you please explain how to 'global install' !! i mean like the command for global install
@praneethvallabha npm i -g truffle
@rgordon95 : thank you
Most helpful comment
To avoid issues with versioning, try doing:
That will make sure you are using the latest version (assuming you don't have installed binaries in your current folder).