Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Microsoft JScript runtime error: path not found

I am trying to create a phonegap project. While creating the project, I get an error that says: "create.js(31, 5) Microsoft JScript runtime error: Path not found"

Could someone help me correcting this error??

Thanks in advance.

like image 586
user2511113 Avatar asked Dec 21 '25 06:12

user2511113


1 Answers

What version of PhoneGap? I think there was a bug that was fixed in versions 2.2 or around there. If you download 2.8 or 3.0 that issue should be fixed.

To go further, check that the folders you are trying to create are set up correct. The documentation around this is pretty weak and the CLI tools are very unforgiving, but I find that certain folders must be there and certain folders must not be there. For me, I hit just about every issue. The project name is used as a class name and a folder name so make sure you choose something that will be a valid class name. The last path of the project path must not exist, but any intermediate paths must exist. In this cmd, everything up to TestProj must exist but trunk must not exist.

bin> create C:\Projects\Cordova\TestProj\trunk com.company.testproj TestProj

If you encounter any of these it won't tell you, it just fails. Hope this helps.

like image 100
John Avatar answered Dec 22 '25 20:12

John



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!