Jimp: Error: Cannot find module 'jimp'

Created on 27 Apr 2019  路  10Comments  路  Source: oliver-moran/jimp

Expected Behavior

var Jimp = require('jimp'); to load the requested modules.

Checked the node_modules folder and it only has the browser and fonts folders.
Dist folder seems to be missing.

No errors when running npm install.

Using in node env not browser.

Current Behavior

Error: Cannot find module 'jimp'

Failure Information (for bugs)

Steps to Reproduce

npm i --save jimp

var Jimp = require('jimp');

Screenshots

https://i.ibb.co/dbr79sM/Screenshot-042819-031817-AM.jpg
https://i.ibb.co/wsyfVXs/Screenshot-042819-031913-AM.jpg

Context

  • Jimp Version: 0.6.1 & 0.6.2
  • Operating System: Windows
  • Node version: 10.15.1

Failure Logs

Most helpful comment

All is good in the world once again

All 10 comments

Same here....

I think the dist/ folder wasn't published.

When I tried installing with Node 12 the message was:

Cannot find module '/Users/danielgraham/appium/node_modules/jimp/dist/index.js'. Please verify that the package.json has a valid "main" entry

dist/ wasn't there only browser/.

I'd recommend unpubishing 0.6.2 and then republishing 0.6.3 as the latest once the problem has been figured out.

@dex-labs @dpgraham how does 0.6.3 look?

Now I am receiving:

Error: Cannot find module '@jimp/types'

Okay I synced all the package versions and changed lerna to force publish all of them. 0.6.4 should work 馃檹

0.6.3 worked for me

0.6.4 worked for me. The 0.6.3 publish was giving "Error: Cannot find module '@jimp/types'" for me.

sweet. sorry for the fuss!

Everything's good now! Thanks for the quick response.

All is good in the world once again

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tutyamxx picture tutyamxx  路  4Comments

molipha picture molipha  路  6Comments

SamuelZhaoY picture SamuelZhaoY  路  3Comments

PainKKKiller picture PainKKKiller  路  5Comments

chancein007 picture chancein007  路  5Comments