truffle init problem

Created on 25 Apr 2019  路  16Comments  路  Source: trufflesuite/truffle

  • [x] I've asked for help in the Truffle Gitter before filing this issue.

Issue

What the issue is, in broad strokes.

Steps to Reproduce

Please provide the shortest amount of steps to reproduce your issue.

Expected Behavior

What you expected to happen.

Actual Results

What actually happened. Please give examples and support it with screenshots, copied output or error messages.

Environment

  • Operating System:
  • Ethereum client:
  • Truffle version (truffle version):
  • node version (node --version):
  • npm version (npm --version):

Most helpful comment

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).

All 16 comments

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

  • truffle init
  • ~~~

    • CategoryInfo : ObjectNotFound: (truffle:String) [], CommandNotFoundException

    • FullyQualifiedErrorId : CommandNotFoundException

      I uninstalled and re-installed truffle, but still having this problem.

      Can any help me with some suggestions! thanks

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TOMOAKI12345 picture TOMOAKI12345  路  3Comments

bmmpxf picture bmmpxf  路  3Comments

abcoathup picture abcoathup  路  3Comments

arunmitteam picture arunmitteam  路  3Comments

maximilianh picture maximilianh  路  3Comments