Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'xcode' on v2.0.0 #24

Closed
JarikH opened this issue May 9, 2018 · 5 comments
Closed

Cannot find module 'xcode' on v2.0.0 #24

JarikH opened this issue May 9, 2018 · 5 comments

Comments

@JarikH
Copy link

JarikH commented May 9, 2018

This is the full error i'm getting (Cordova v6.3.0):

(node:31874) UnhandledPromiseRejectionWarning: Error: Cannot find module 'xcode'
at Function.Module._resolveFilename (module.js:555:15)
at Function.Module._load (module.js:482:25)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at module.exports (/Users/{user}/fuse_helperapp/cordova/plugins/cordova-plugin-localization-strings/scripts/create_ios_strings.js:91:17)
at module.exports (/Users/{user}/fuse_helperapp/cordova/plugins/cordova-plugin-localization-strings/scripts/create_strings.js:11:23)
at runScriptViaModuleLoader (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:188:18)
at runScript (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:164:16)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:132:20
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54)
(node:31874) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:31874) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Anyone else having this issue? Anyone who knows what i'm doing wrong or if something is wrong on the plugins end?

@davidefavia
Copy link

davidefavia commented May 11, 2018

Did you run install command with --fetch flag? Seems plugin doesn't find its own dependencies:

Cannot find module 'xcode' (first line of your stacktrace)

@JarikH
Copy link
Author

JarikH commented May 11, 2018

@davidefavia I'm quite sure that i did do that, but i'll try it again monday, i'll make sure to update you on if it worked or not.

@JarikH
Copy link
Author

JarikH commented May 14, 2018

@davidefavia Yeah i just tried to run cordova plugin add https://github.com/kelvinhokk/cordova-plugin-localization-strings.git --fetch but it's still giving me the same error, any other things i could try?

@davidefavia
Copy link

Faced similar issue with elementtree module. I removed folders platforms and plugins, removed package-lock.json and installed everything again. Seemed npm related, solved thanks to this comment: npm/npm/issues/17821

@JarikH
Copy link
Author

JarikH commented May 14, 2018

@davidefavia Thanks, that fixed it 👍

@JarikH JarikH closed this as completed May 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants