Cordova error 'cannot find bplist-parser'


#1

The problem seems to have mysteriously solved itself.
Thanks for the help guys, sorry I couldn’t provide more detailed instructions for those who may have found this via search.


Error: Cannot find module 'bplist-parser'
#2

try:
npm install -g bplist-parser


#3

Try “npm update -g”.


#4

I am having the same issue with Cordova. I have tried the below to no success:

  • node uninstall and AppData wipe.
  • npm install -g cordova@5.3.3 (colleague’s working version)
  • npm install -g bplist-parser (installed but doesn’t fix issue)
  • npm update -g
  • and a number of other things…

My environment:
Windows 7
npm -v 2.11.3
ionic -v 1.7.7
cordova -v -> command doesn’t run, get error as above
node -v 0.12.7


#5

I had the same problem in Ubuntu.

It’s an issue with node and npm versions; you need to use node v4 and the latest npm.

You also need to uninstall the old Cordova and manually delete the global node_modules directory.
Thereafter just reinstall Cordova and everything should be working.


#6

I had the same issue on Ubuntu 14.04 LTS and thought I would post what ended up working for me.
I am a novice with node (first project with it) I went through the same process as mentioned up above a couple times.
Uninstalling everything, installing the latest version of Node and npm.
Unfortunately none of this solved the issue.

I realized its simply a linking issue within the cordova package.
After spending more time than I wanted fumbling around this is what I did:

cd /usr/local/lib/node_modules/
sudo npm install

cd /usr/local/lib/node_modules/cordova/node_modules/
sudo npm install

cd /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/
sudo npm install

This fixed it for me. The same concept might help your Windows issue.
I know this just added a bunch of unnecessary modules in those folders, but it works.
Good Luck.


#7

It is work! Cordova was install
Thank you, bstockman25

cd /usr/local/lib/node_modules/
sudo npm install

cd /usr/local/lib/node_modules/cordova/node_modules/
sudo npm install

cd /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/
sudo npm install


#8

For Ubuntu 14.04 x64

Installing (or updating) Node.js and updating npm

$ sudo apt-get install curl
$ curl --silent --location https://deb.nodesource.com/setup_5.x | sudo bash -
$ sudo apt-get install nodejs


$ sudo npm install npm -g

https://docs.npmjs.com/getting-started/installing-node

$ node -v
v5.10.1

$ npm -v
3.8.3

then

http://ionicframework.com/docs/guide/installation.html

$ sudo npm install -g cordova

$cordova -v
6.1.1