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

Error: Cannot find module 'es5-shim/package.json' #13

Closed
ghost opened this issue Apr 8, 2011 · 3 comments
Closed

Error: Cannot find module 'es5-shim/package.json' #13

ghost opened this issue Apr 8, 2011 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 8, 2011

Hi! I can't run basic example on my Macbook with Snow Leopard. Am I doing something wrong?

Ravbook:zaqpki2 rav$ node -v
v0.4.1
Ravbook:zaqpki2 rav$ npm -v
0.3.18
Ravbook:zaqpki2 rav$ ls
index.html  js      server.js
Ravbook:zaqpki2 rav$ ls js
bar.js      baz.coffee  foo.js
Ravbook:zaqpki2 rav$ node server.js 
node.js:116
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
        
Error: Cannot find module 'es5-shim/package.json'
    at Function._resolveFilename (module.js:290:11)
    at Function.resolve (module.js:322:19)
    at Object.modules (/Users/Rav/.node_libraries/.npm/source/0.0.3/package/index.js:6:39)
    at Function.bundle (/Users/Rav/.node_libraries/.npm/browserify/0.3.1/package/index.js:42:26)
    at /Users/Rav/.node_libraries/.npm/browserify/0.3.1/package/index.js:11:23
    at Object. (/Users/Rav/zaqpki2/server.js:5:32)
    at Module._compile (module.js:374:26)
    at Object..js (module.js:380:10)
    at Module.load (module.js:306:31)
    at Function._load (module.js:272:10)
@ghost
Copy link
Author

ghost commented Apr 8, 2011

the same result with node 0.4.5

@ghost
Copy link

ghost commented Apr 8, 2011

  1. Is es5-shim installed?
  2. Did you install es5-shim before npm v0.3?

@ghost
Copy link
Author

ghost commented Apr 8, 2011

I've installed es5-chim, uninstalled, updated npm and node, installed again and now it works.

@ghost ghost closed this as completed Apr 8, 2011
kumavis pushed a commit to kumavis/browserify that referenced this issue Mar 6, 2020
Fixes browserify#13.

This depends on browserify ^3.30.5, as it uses the _hash method.
Also adds common deps to 'exports' hash to simulate -r/-x.
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

0 participants