ingreedy-js
ingreedy-js copied to clipboard
Cannot find module
Even after doing a npm install
I still get , on doing this var ingreedy = require('ingreedy-js');
Error: Cannot find module 'ingreedy-js'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.
I have same problem.
Can any one help?
I copied the parser.js file into my project folder and wrote module.exports = Ingreedy
. Then, I can import it with:
var Ingreedy = require("./parser.js");
It seems like the problem exists because the parser file did not export the parser and the package.json file didn't have the main field specified as the parser file.