Comments (14)
- I just fixed the
#!
issue and wrote some tests for it. - 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.
- 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.
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.
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.
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.
@ayal Can you npm update es5-shim
and get back with if that changed things any?
from browserify.
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.
@dominictarr: Affirmative. It makes bundling web-compatible versions of the dependent modules traverse and dnode-protocol much simpler.
from browserify.
@substack, @dominictarr: trying to upgrade npm at the moment and failing - will let you know when i get there. fanks.
from browserify.
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.
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.
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.
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.
Aww yiss, it works! :)
fankz!
from browserify.
Hoory! Now closing!
from browserify.
Related Issues (20)
- [spam]
- Unexpected character '#' HOT 1
- visitor[(override || node.type)] is not a function
- Dump offending code when acorn complains about syntax error HOT 4
- querystring API considered legacy by npm HOT 1
- require fs-js in browser does not work after creating and including Bundle HOT 1
- TypeError: this.buffers[pos.buf].get is not a function
- ااااا HOT 1
- When using `pnpm`, a module that uses `Buffer.isBuffer` fails to bundle HOT 2
- Calling bundle file from react gives Syntax error: react_app_testing/src/HashBundle.js: Unexpected character '�' (1:0) HOT 7
- Archive this repository HOT 7
- Doc: Typescript support
- Hey Some one please help :- browserify error with webtorrent HOT 3
- Browserify + common-shakeify + Chart.js = infinite stack trace HOT 2
- ERROR in ./node_modules/ ... in ReactJs HOT 2
- Getting error `require is not defined` HOT 4
- Stop browserify from evaluating dynamic imports ( import() ) and crashing? HOT 3
- Where do I put flags in config?
- Browserify fails to resolve default node module used within an external package HOT 7
- [spam]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from browserify.