Enoent When Installing A Plugin in Intel XDK

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:

  1. remove your project from the project list
  2. use your operating system to make a zip (backup) of your project
  3. use your operating system to rename your ‘old’ project folder (eg. to “v02_ProjectName”)
  4. 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.)
  5. convert it to a Cordova project
  6. add the plugins that you need, the normal way. This should now work.
  7. From the www folder in the old directory, copy over everything except for the index.html and the xdk directory
  8. 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.
  9. Your project should now work. You’ll need to rebuild your XML files and other files directly above the www folder manually.
  10. 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!

Advertisements

One comment on “Enoent When Installing A Plugin in Intel XDK

  1. Rob, do copy the init-dev.js file from the old 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. Paul

    Like

Comments are closed.