Enoent When Installing A Plugin in Intel XDKPublished: 01-Dec-2015
So, I was minding my own business, doing my own thing. Working on my current-est app. In Intel XDK.
And I was installing a plugin. It was the insomnia plugin (a featured plugin). Nothing special about it. Other plugins failed too (whether featured or core).
But I got an error. It was saying that that the plugin.xml file could not be found (in my personal directory). Which is surprising, because this file is located on a server on GitHub. Of course it's not on my disk.
Why did this happen? To me of all people?
I think it's because I removed a couple of plugins. Or maybe Intel XDK shut my project down in some kind of 'unclean' manner. I really am not sure.
I wish I had taken a screen shot of the error. Anyway, the applicable Google search is "intel xdk install plugin enoent plugin.xml".
Except, this search suggests reinstalling Intel XDK. And not much else.
There's another option to try first. In the Intel XDK project list:
- remove your project from the project list
- use your operating system to make a zip (backup) of your project
- use your operating system to rename your 'old' project folder (eg. to "v02_ProjectName")
- use Intel XDK to create a new project from scratch with the same name as the old one with the same basic starting properties as last time (eg. from the same base template etc.)
- convert it to a Cordova project
- add the plugins that you need, the normal way. This should now work.
- From the www folder in the old directory, copy over everything except for the index.html and the xdk directory
- just in case, open the old index.html file and copy and paste the contents into the new index.html file - being careful in particular about the JS library script links. They might be different, you never know. Worth visually inspecting.
- Your project should now work. You'll need to rebuild your XML files and other files directly above the www folder manually.
- Don't copy the www\xdk files from the old project to the new project at all. I'm not sure if this is important or not. It doesn't hurt not to... \[SEE CORRECTION BELOW]
Well, this worked for me. See how you go.
CORRECTION TO 10: According to Intel, the following applies: "do copy the init-dev.js file from the old (XDK directory) to the new project (inside the www\xdk directory) if you are using the "app.Ready" event to trigger your app or if you are using App Designer (which uses this event). You may also find some custom services code in that directory, if you were using that feature." Thanks for the advice Paul!