Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

npm version conflict #28

Open
miguelrincon opened this issue May 24, 2017 · 1 comment
Open

npm version conflict #28

miguelrincon opened this issue May 24, 2017 · 1 comment

Comments

@miguelrincon
Copy link

miguelrincon commented May 24, 2017

When running cordova prepare I run into the following issue.

I think is due to a different npm version being included along with this project. I really like this plugin but this prevents me from running cordova normally.

Should npm dependency be remove from this plugin?

$ npm run cordova -- prepare

> myservice-ng@1.3.76 cordova /Users/mr155795/git/myservice2-ng
> cordova "prepare"

Discovered platform "android@^6.2.3" in config.xml or package.json. Adding it to the project
Error: Cannot find module 'npm'
Discovered platform "browser@^4.1.0" in config.xml or package.json. Adding it to the project
Error: Cannot find module 'npm'
Discovered platform "ios@^4.4.0" in config.xml or package.json. Adding it to the project
Error: Cannot find module 'npm'
Error: No platforms added to this project. Please use `cordova platform add <platform>`.

npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "cordova" "--" "prepare"
npm ERR! node v6.9.4
npm ERR! npm  v4.1.1
npm ERR! code ELIFECYCLE
npm ERR! project@1.3.76 cordova: `cordova "prepare"`
npm ERR! Exit status 1
@yipcma
Copy link

yipcma commented Aug 9, 2017

same issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants