You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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('
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: