You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
[ ✔] I've asked for help in the Truffle Gitter before filing this issue.
*In addition to asking for help on StackOverflow
Issue
I'm using truffle with a Node.js project, and when I attempt to migrate the project, I get the following error: Windows Script Host
However, when I use the suggested fix, which is to rename the truffle.js file to something other than truffle.js (i.e. truffle-config.js), then I get a different error:
Could not find suitable configuration file.
When I rename the configuration file back to "truffle.js", then I get the first error all over again.
The solutions I've tried have included using Windows Powershell to run the program and running the command npm install --force -g truffle, neither of which have worked. I've looked into the recommended solution (#150), and none of the proposed solutions have worked so far.
Environment
Operating System: Windows 10
Truffle version: v3.3.0
node version: 6.11.0
Reproducing the Error
You must be using Windows 10, the project runs correctly with Linux. Run truffle migrate. You will get an error from Windows Script Host that will say 'module' is undefined. Change the name of the truffle Javascript file to truffle-config.js. Run truffle migrate again. You will get an error that says Could not find suitable configuration file. Change the name of the truffle-config.js file back to truffle.js. Run truffle migrate and you will get the 'module' is undefined error again.
The text was updated successfully, but these errors were encountered:
Thank you for raising this issue! It has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you would like to keep this issue open, please respond with information about the current state of this problem.
There has been no new activity on this issue since it was marked as stale 7 days ago, so it is being automatically closed. If you'd like help with this or a different problem, please open a new issue. Thanks!
*In addition to asking for help on StackOverflow
Issue
I'm using truffle with a Node.js project, and when I attempt to migrate the project, I get the following error:
Windows Script Host
However, when I use the suggested fix, which is to rename the truffle.js file to something other than truffle.js (i.e. truffle-config.js), then I get a different error:
When I rename the configuration file back to "truffle.js", then I get the first error all over again.
The solutions I've tried have included using Windows Powershell to run the program and running the command
npm install --force -g truffle
, neither of which have worked. I've looked into the recommended solution (#150), and none of the proposed solutions have worked so far.Environment
Reproducing the Error
You must be using Windows 10, the project runs correctly with Linux. Run
truffle migrate
. You will get an error from Windows Script Host that will say'module' is undefined
. Change the name of the truffle Javascript file totruffle-config.js
. Runtruffle migrate
again. You will get an error that saysCould not find suitable configuration file
. Change the name of the truffle-config.js file back to truffle.js. Runtruffle migrate
and you will get the'module' is undefined
error again.The text was updated successfully, but these errors were encountered: