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

lodash-node on package.json marked as * fail at runtime on OSX with newest version #24

Open
thomasmodeneis opened this issue Apr 3, 2015 · 1 comment

Comments

@thomasmodeneis
Copy link

Hi,
I've noticed that the loadash-node is marked as * on package.json, and because of this the newest version 3.6.0 is being downloaded when npm install. But this version fails at runtime with error:

module.js:338
    throw err;
          ^
Error: Cannot find module 'lodash-node/underscore'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/tst/node_modules/node-summary/lib/summary.js:1:71)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

I changed the dependencies on packaje.json to 2.4.1 and is now all back to normal:

"dependencies": {
    "lodash-node": "2.4.1"
  }

Can you see if is possible to specify a proper working version instead of * ? that will help.

Thank you.

@jbrooksuk
Copy link
Owner

lodas-node now has a lodash-node/compact module we could import instead.

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