Random thoughts & observations

From the mundane to the profound and everything in between here’s what’s rocking our world

Resolving cannot find NPM module error when installing cordova plugins

Posted: March 25, 2016
Written by: Saints At Play
Category: Node JS

After updating both the local Ionic and Cordova versions for an iOS project we encountered the following error while attempting to install some Cordova plugins from the command line:

    throw err;
Error: Cannot find module 'bplist-parser'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object. (/Users/joebloggs/.nvm/v0.10.26/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:20:14)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

Not a good sign!

Thankfully the fix to this takes less than a few seconds to implement...

More »

Resolving node module did not self register errors

Posted: March 15, 2015
Written by: Saints At Play
Category: Node JS

If you've recently updated your existing Node installation to v0.12 and have success with starting your server then congratulations. However it might be the case that you are experiencing the following error warning when trying to launch your Express Framework application from the command line:

[Error: Module did not self-register.]

Not the best result right? Here's how we resolved the issue and got our Express apps working again.

More »

Resolving npm ERR! cb() never called errors

Posted: March 14, 2015
Written by: Saints At Play
Category: Node JS

This was one extremely annoying error that we kept encountering when trying to update existing node packages using the Node Package Manager from the command line:

npm ERR! cb() never called!

After much googling (interrupted by intermittent bouts of swearing at the computer) we finally found a solution to the problem.

More »

Resolving NPM cannot install dependencies - asset locked errors

Posted: October 17, 2014
Written by: Saints At Play
Category: Node JS

Here's a frustrating error you may have encountered when trying to install software using the npm command: NPM cannot install dependencies - Attempt to unlock xxxx which hasn't been locked.

Thankfully the fix is really simple, providing you don't mind getting your fingers dirty at the command line...

More »

Latest Tweets