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

Missing lodash dependency in register plugins cordova hook #145

Closed
chilltemp opened this issue Jan 9, 2015 · 0 comments
Closed

Missing lodash dependency in register plugins cordova hook #145

chilltemp opened this issue Jan 9, 2015 · 0 comments

Comments

@chilltemp
Copy link
Contributor

I suspect that most people who use this generator have lodash installed globally, and the global modules folder in their NODE_PATH. However, that goes against the current recommendations.

Error: Cannot find module 'lodash'
    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> (/Users/.../BitBucket/yo-GFm/hooks/after_plugin_add/register_plugins.js:7:9)
    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 Function.Module.runMain (module.js:497:10)

/Users/.../GitHub/generator-ionic/node_modules/cordova/node_modules/q/q.js:126
                    throw e;
                          ^
CordovaError: Hook failed with error code 8: /Users/.../BitBucket/yo-GFm/hooks/after_plugin_add/register_plugins.js
    at /Users/.../GitHub/generator-ionic/node_modules/cordova/src/hooker.js:140:27
    at _rejected (/Users/.../GitHub/generator-ionic/node_modules/cordova/node_modules/q/q.js:808:24)
    at /Users/.../GitHub/generator-ionic/node_modules/cordova/node_modules/q/q.js:834:30
    at Promise.when (/Users/.../GitHub/generator-ionic/node_modules/cordova/node_modules/q/q.js:1079:31)
    at Promise.promise.promiseDispatch (/Users/.../GitHub/generator-ionic/node_modules/cordova/node_modules/q/q.js:752:41)
    at /Users/.../GitHub/generator-ionic/node_modules/cordova/node_modules/q/q.js:574:44
    at flush (/Users/.../GitHub/generator-ionic/node_modules/cordova/node_modules/q/q.js:108:17)
    at process._tickCallback (node.js:419:13)
sidneys added a commit to sidneys/generator-ionic that referenced this issue Jan 9, 2015
* commit '06b7268cae4e48d4aac4e959c97537905f4efafc':
  fix(cordova): Remove lodash dependency from register plugin hook. Closes diegonetto#145
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

1 participant