Installation PhoneGap

2

After running sudo npm install -g phonegap and trying to create a project with phonegap create my-app the return of the terminal is this;

module.js:340
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.<anonymous>     (/usr/local/lib/node_modules/phonegap/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)

I tried to run clean, check but nothing solves it. (I already have the node and npm installed)

    
asked by anonymous 17.12.2015 / 17:05

3 answers

0

This problem is due to a bad installation, so I understand, you just need to update sudo npm update -g , so it will force the upgrade, so it works again normally.

    
17.12.2015 / 17:34
0

Try to install the cord

sudo npm install cordova

Then try to create a project

cordova create projeto
    
04.01.2016 / 04:13
0

I had the same problem to use "IONIC FRAMEWORK", my question was solved by installing Cordova

$sudo npm install cordova

I checked the cordova version

$cordova -v 

Soon after I used UPDATE

$sudo npm update -g

source link

    
11.05.2016 / 20:06