0

I am trying to run truffle commands on commandline but it brings up the code file instead

like this

Like this

2
  • Try to run it from an other directory of your project (not from the directory where your truffle.js is) Commented Jan 25, 2018 at 4:57
  • @Andromelus this happens after I uninstalled and installed truffle C:\Users\user>npm install -g truffle C:\Users\user\AppData\Roaming\npm\truffle -> C:\Users\user\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js + [email protected] added 91 packages in 21.825s C:\Users\user>truffle version 'truffle' is not recognized as an internal or external command, operable program or batch file. Commented Jan 25, 2018 at 8:15

0

Browse other questions tagged or ask your own question.