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 when attempting to parse anything? #6

Open
hbstone opened this issue Sep 17, 2010 · 2 comments
Open

error when attempting to parse anything? #6

hbstone opened this issue Sep 17, 2010 · 2 comments

Comments

@hbstone
Copy link

hbstone commented Sep 17, 2010

I can require Apricot, but attempting to actually use it fails with a jsdom error. All I've installed on this box is node, npm, and apricot. All should be the newest versions, node and npm were cloned from git today, apricot was then installed via npm install apricot.

$ cat test.js
var apricot = require('apricot').Apricot;
console.log('apricot declared');
apricot.parse('

paragraph

', function() {
console.log('apricot callback');
});

$ node test.js
apricot declared

node.js:50
throw e;
^
Error: Cannot find module 'jsdom-0.1.2/jsdom/level1/core'
at loadModule (node.js:477:15)
at require (node.js:613:14)
at Object.Apricot (/usr/local/lib/node/.npm/apricot/0.0.4/package/lib/apricot.js:6:13)
at Function.parse (/usr/local/lib/node/.npm/apricot/0.0.4/package/lib/apricot.js:282:12)
at Object. (/home/geekdev/test.js:4:9)
at Module._compile (node.js:664:23)
at Module._loadScriptSync (node.js:671:10)
at Module.loadSync (node.js:540:12)
at Object.runMain (node.js:724:24)
at Array. (node.js:747:12)

$ npm ls installed
npm info it worked if it ends with ok
npm info version 0.2.1
[email protected] =silentrob active installed latest remote
[email protected] =tautologistics active installed latest remote
[email protected] =tmpvar active installed remote
[email protected] =tmpvar active installed remote stable latest
[email protected] =isaacs active installed latest remote
npm ok

@vvilhonen
Copy link

I got it working with npm after I changed require("jsdom_0.1.2/... to require("jsdom/... in the beginning of the apricot.js.

@hbstone
Copy link
Author

hbstone commented Sep 25, 2010

Good to know, thanks.

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