cheerio: release 0.21.0 - Error: Cannot find module 'cheerio'

Requiring the module gives the error in the subject.

It seems there is not index.js in node_modules/cheerio.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 8
  • Comments: 26 (2 by maintainers)

Commits related to this issue

Most upvoted comments

I have an issue with: dependabot/npm_and_yarn/main/cheerio-1.0.0-rc.11 in my Github Workflow. It works on my local, but it fails with the error on Github Workflow run:

Cannot find module ‘cheerio/lib/utils’ from ‘node_modules/enzyme/build/Utils.js’

These are the steps that I use:

    steps:
      - uses: actions/checkout@v3
      - run: npm ci
      - run: npm run lint
      - run: npm test

Rollback to 1.0.0-rc.10 and it works.

Have the same issue

I have an issue with: dependabot/npm_and_yarn/main/cheerio-1.0.0-rc.11 in my Github Workflow. It works on my local, but it fails with the error on Github Workflow run:

Cannot find module ‘cheerio/lib/utils’ from ‘node_modules/enzyme/build/Utils.js’

These are the steps that I use:

    steps:
      - uses: actions/checkout@v3
      - run: npm ci
      - run: npm run lint
      - run: npm test

sorry for the headache, 0.22.0 is out now 🎉

Sorry for this everybody. I still haven’t figured out why npm doesn’t include the index.js file anymore in bundles, it is weird at least. I’ve unpublished 0.21.0 and will publish 0.21.1 as soon as I can get a complete package.

@clementallen what do you mean with The 0.21.0 release has been rolled back?

When I do npm show cheerio it shows 0.21.0 as the latest release.

I think you should try to npm unpublish it (though I don’t know if with recent changes to npm it’s possible anymore), or npm publish a patch if possible

Thanks

edit: http://blog.npmjs.org/post/141905368000/changes-to-npms-unpublish-policy

If the version is older than 24 hours, then the unpublish will fail, with a message to contact support@npmjs.com.

I also found this issue, I downgraded to 0.20 and it is ok there.

$ npm install cheerio
$ ls node_modules/cheerio/
History.md  lib  package.json  Readme.md