Cannot find module
x1911 opened this issue · 2 comments
x1911 commented
it seems a very nice work, but after i install with
'npm install --save docx2html'
it throw the error
module.js:327
throw err;
^
Error: Cannot find module 'docx2html'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
winstonewert commented
The package.json file is improperly configured, it doesn't have a main attribute.
I found the npm package mammoth which provides the same function and actually works.
lalalic commented
fixed