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

sinon in npm registry broken with node 0.6.5 #65

Closed
shawnburke opened this issue Dec 12, 2011 · 4 comments
Closed

sinon in npm registry broken with node 0.6.5 #65

shawnburke opened this issue Dec 12, 2011 · 4 comments

Comments

@shawnburke
Copy link

node.js finally removed require.paths, the sinon (and sinon-nodeunit) in the NPM registry still have it. Git clone directly into the node_modules folder works fine, please republish.

Here's the output

uncaught undefined: Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead.
at Function. (module.js:376:11)
at Object. (/Users/shawn/Developer/node/nodeproj1/node_modules/sinon-nodeunit/deps/sinon/lib/sinon.js:208:12)

@cjohansen
Copy link
Contributor

Are you having problems with Sinon or sinon-nodeunit specifically? sinon-nodeunit bundles old versions of both nodeunit and sinon, and I'm thinking of deprecating the package altogether. Sinon in npm does not have this flaw.

@shawnburke
Copy link
Author

Yeah, I think it's sinon-nodeunit. I thought I saw the same problem with sinon (looked like an update hadn't been published to NPM in a while), but maybe I was mistaken.

Just to be clear, the issue isn't node unit it's that node 0.6.5 has removed require.paths from the API.

@cjohansen
Copy link
Contributor

I know the issue. Sinon had this issue, but it was solved long ago. I recommend you use vanilla nodeunit and Sinon for now, I don't think I'll update sinon-nodeunit anymore, especially now that buster.js is out in beta (http://busterjs.org)

@shawnburke
Copy link
Author

Got it, thx!

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