Closed waynethompson closed 7 years ago
This is very weird. Could you please tell us how did you install monaca-cli
? Was it the first time or you were upgrading?
It was a new install on windows 10 using npm.
I have a machine that I have just reinstalled the latest windows 10 so I will try to replicate the problem.
Thanks! Please let us know how it goes.
A similar error happened after a new install on osx.
I notice after running the command the file exists but only contains a blank object {}
I tested on Ubuntu 17.04 and noticed the same behaviour so without looking at the code I asume that is what it is meant to do.
Now I am testing on Windows 10 again
Yeah, an empty object is the correct behavior. I will try to make reproduce the issue on Windows and let you know. In the meanwhile, please check if your current authenticated user has WRITE privilege in the .cordova dir location.
Update: just tried to perform a fresh installation on Windows 10 by using Powershell and had no issues. The file was correctly created.
Closing this for now, feel free to provide additional information in case you are still encountering the issue.
After installing the cli on a Windows10 machine and running any of the monaca commands I get the error
Looking in the .cordova folder I can see monaca.json
I copied monaca.json to monaca_config.json and the error was fixed.