dappuniversity / election

A Decentralized Ethereum Voting Application Tutorial
566 stars 507 forks source link

The command 'truffle migrate' fails conditionally #4

Closed adriatic closed 6 years ago

adriatic commented 6 years ago

If the command 'truffle" is run in the cmder (or just plain windows cmd.exe) tool yields, then it would fail, if the current folder contains any Ethereum project

image

If you run the same command in a folder that does not contain an Ethereum project, then the expected behavior takes place:

Truffle v4.1.13 - a development framework for Ethereum

Usage: truffle <command> [options]

Commands:
  init      Initialize new and empty Ethereum project
  compile   Compile contract source files
  migrate   Run migrations to deploy contracts
  deploy    (alias for migrate)
  build     Execute build pipeline (if configuration present)
  test      Run JavaScript and Solidity tests
  debug     Interactively debug any transaction on the blockchain (experimental)
  opcode    Print the compiled opcodes for a given contract
  console   Run a console with contract abstractions and commands available
  develop   Open a console with a local development blockchain
  create    Helper to create new contracts, migrations and tests
  install   Install a package from the Ethereum Package Registry
  publish   Publish a package to the Ethereum Package Registry
  networks  Show addresses for deployed contracts on each network
  watch     Watch filesystem for changes and rebuild the project automatically
  serve     Serve the build directory on localhost and watch for changes
  exec      Execute a JS module within this Truffle environment
  unbox     Download a Truffle Box, a pre-built Truffle project
  version   Show version number and exit

See more at http://truffleframework.com/docs
Bgumel commented 6 years ago

use "truffle.cmd"

adriatic commented 6 years ago

Yes, I discovered this sometime ago and forgot to close this issue. Thank you