Giter VIP home page Giter VIP logo

Comments (14)

 avatar commented on May 15, 2024
  1. I just fixed the #! issue and wrote some tests for it.
  2. I would rather not have to keep es5-shim up to date myself when it's already up on npm unless there is a compelling reason to do this.
  3. It seems like package.json.js would be a sufficiently rare corner case to ignore completely, especially given that node v0.4 now gives special treatment in require() to package.json now. I might not be understanding your problem though.

from browserify.

dominictarr avatar dominictarr commented on May 15, 2024

sorry, my bad.

I had an old version of npm and it was installing differently. upgraded, and reinstalled and everything works now.

so it's looking like the issue is just you need npm: ">=0.3.0" in package.json

from browserify.

 avatar commented on May 15, 2024

Old npm shims break stuff but I don't directly require() npm anywhere so I'm not sure whether I should introduce a dependency on npm. This will fix itself over time I hope.

from browserify.

ayal avatar ayal commented on May 15, 2024

seems related, i get the following upon require('dnode') -

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: EBADF, Bad file descriptor '/usr/local/lib/node/.npm/nvm/0.0.6/package/v0.4.5/lib/node/[email protected]/package.json'
at Object.openSync (fs.js:221:18)
at Object.readFileSync (fs.js:112:15)
at Object.modules :(/usr/local/lib/node/.npm/nvm/0.0.6/package/v0.4.5/lib/node/.npm/source/0.0.3/package/index.js:7:29)
at Function.bundle (/usr/local/lib/node/.npm/nvm/0.0.6/package/v0.4.5/lib/node/.npm/browserify/0.3.1/package/index.js:42:26)
at Object. (/usr/local/lib/node/.npm/nvm/0.0.6/package/v0.4.5/lib/node/.npm/dnode/0.6.6/package/lib/stream_socketio.js:7:18)
at Module._compile (module.js:404:26)
at Object..js (module.js:410:10)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at require (module.js:348:19)

from browserify.

 avatar commented on May 15, 2024

@ayal Can you npm update es5-shim and get back with if that changed things any?

from browserify.

dominictarr avatar dominictarr commented on May 15, 2024

ayal,

that looks like the same thing.

what version of npm are you using?

browserify is not compatible with the way old versions of npm installs things.

this was fixed by upgrading npm to latest (which was 0.3.15 at the time) and reinstalling es5-shim.

browserify is now a dependency of dnode, right substack?

from browserify.

 avatar commented on May 15, 2024

@dominictarr: Affirmative. It makes bundling web-compatible versions of the dependent modules traverse and dnode-protocol much simpler.

from browserify.

ayal avatar ayal commented on May 15, 2024

@substack, @dominictarr: trying to upgrade npm at the moment and failing - will let you know when i get there. fanks.

from browserify.

ayal avatar ayal commented on May 15, 2024

helloz, i now have the latest npm but still es5-shim is installed as 1.0.0 whether it is through browserify or a separate install..

from browserify.

dominictarr avatar dominictarr commented on May 15, 2024

did it work?

es5-shim must be installed by a late version of npm. maybe reinstall it?

if it is, NPM_ROOT/es5-shim/package.json should exist.

in your case it looks like that will be:

/usr/local/lib/node/.npm/nvm/0.0.6/package/v0.4.5/lib/node/es5-shim/package.json

On Tue, Apr 5, 2011 at 9:25 PM, ayal <
[email protected]>wrote:

helloz, i now have the latest npm but still es5-shim is installed as
1.0.0 whether it is through browserify or a separate install..

Reply to this email directly or view it on GitHub:
#4 (comment)

from browserify.

ayal avatar ayal commented on May 15, 2024

nope, what exists in that location is "package.json.js" which indicates the version is 1.0.0 and no matter how i try to remove/uninstall it, when i re-install it using the latest npm ([email protected]) i still get that version of es5-shim.

from browserify.

dominictarr avatar dominictarr commented on May 15, 2024

gotacha, that is how older versions of npm install modules. you need:

npm uninstall es5-shim

(make sure it's gone, if that doesn't work you should be able to delete it
manually with rm)

then reinstall.

On Thu, Apr 7, 2011 at 5:03 AM, ayal <
[email protected]>wrote:

nope, what exists in that location is "package.json.js" which indicates the
version is 1.0.0 and no matter how i try to remove/uninstall it, when i
re-install it using the latest npm ([email protected]) i still get that version
of es5-shim.

Reply to this email directly or view it on GitHub:
#4 (comment)

from browserify.

ayal avatar ayal commented on May 15, 2024

Aww yiss, it works! :)
fankz!

from browserify.

 avatar commented on May 15, 2024

Hoory! Now closing!

from browserify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.