Running truffle from command line gives me this Windows 7 popup message:
While init runs successfully. I see file truffle.js in my project folder. How can I handle this gently?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communityRunning truffle from command line gives me this Windows 7 popup message:
While init runs successfully. I see file truffle.js in my project folder. How can I handle this gently?
Otherwise you can simply rename the file
C:\User\name\AppData\Roaming\npm\truffle.bat
(for exmaple in truf.bat
); in this way, as you said, avoid confusion with microsoft command lines.
Update (12.07.2018)
It is a known problem and now also part of the official truffle-documentation. They provide 4 different solutions:
.cmd
extension (truffle.cmd compile
)PATHEXT
environment variable and remove .JS;
from the list of executable extensionstruffle.js
to something else (truffle-config.js
)This is how I've solved it:
C:\Users\steve\AppData\Roaming\npm\truffle migrate
looks like architecture flaw if truffle: config file is truffle.js, which confuses windows command line...