Installation Phonegap

Asked

Viewed 210 times

2

After rotating sudo npm install -g phonegap and try 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’ve tried to spin clean, check but nothing solves. (I already have Ode and npm installed)

3 answers

0

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

$sudo npm install cordova

checked the version of Cordova

$cordova -v 

soon after I used the UPDATE

$sudo npm update -g

source https://cordova.apache.org/docs/en/4.0.0/guide/cli/

0


This problem is due to a bad installation, from what I understand, just give an update sudo npm update -g , so it will force the upgrade, so it will start working normally.

0

Try to install Cordova

sudo npm install cordova

Then try to create a project

cordova create projeto

Browser other questions tagged

You are not signed in. Login or sign up in order to post.