Skip to content

error when attempting to parse anything? #6

@hbstone

Description

@hbstone

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
apricot@0.0.4 =silentrob active installed latest remote
htmlparser@1.6.2 =tautologistics active installed latest remote
jsdom@0.1.2 =tmpvar active installed remote
mjsunit.runner@0.1.0 =tmpvar active installed remote stable latest
npm@0.2.1 =isaacs active installed latest remote
npm ok

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions