[GH-ISSUE #3289] [bug]: Hoppscotch CLI error #1088

Closed
opened 2026-03-16 18:31:23 +03:00 by kerem · 5 comments
Owner

Originally created by @SaailN on GitHub (Aug 24, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3289

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

I was exploring hopp test command to run the collection file(.json) exported from hoppscotch.io but getting the following error while running the file.

internal/modules/cjs/loader.js:818
  throw err;
  ^

Error: Cannot find module 'fs/promises'
Require stack:
- /usr/local/lib/node_modules/@hoppscotch/cli/dist/index.js
- /usr/local/lib/node_modules/@hoppscotch/cli/bin/hopp
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/@hoppscotch/cli/dist/index.js:24118:31)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/local/lib/node_modules/@hoppscotch/cli/dist/index.js',
    '/usr/local/lib/node_modules/@hoppscotch/cli/bin/hopp'
  ]
}

Steps to reproduce

Screenshot from 2023-08-24 19-59-27

Environment

Production

Version

Cloud

Originally created by @SaailN on GitHub (Aug 24, 2023). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3289 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior I was exploring ```hopp test ``` command to run the collection file(.json) exported from hoppscotch.io but getting the following error while running the file. ``` internal/modules/cjs/loader.js:818 throw err; ^ Error: Cannot find module 'fs/promises' Require stack: - /usr/local/lib/node_modules/@hoppscotch/cli/dist/index.js - /usr/local/lib/node_modules/@hoppscotch/cli/bin/hopp at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15) at Function.Module._load (internal/modules/cjs/loader.js:667:27) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object.<anonymous> (/usr/local/lib/node_modules/@hoppscotch/cli/dist/index.js:24118:31) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) { code: 'MODULE_NOT_FOUND', requireStack: [ '/usr/local/lib/node_modules/@hoppscotch/cli/dist/index.js', '/usr/local/lib/node_modules/@hoppscotch/cli/bin/hopp' ] } ``` ### Steps to reproduce ![Screenshot from 2023-08-24 19-59-27](https://github.com/hoppscotch/hoppscotch/assets/40292489/fb50693f-935b-4e55-9881-e894b2584181) ### Environment Production ### Version Cloud
kerem 2026-03-16 18:31:23 +03:00
Author
Owner

@nivedin commented on GitHub (Sep 18, 2023):

@SaailN can you try renaming the file name and run the test.

<!-- gh-comment-id:1723117587 --> @nivedin commented on GitHub (Sep 18, 2023): @SaailN can you try renaming the file name and run the test.
Author
Owner

@AndrewBastin commented on GitHub (Sep 18, 2023):

@SaailN can we also get your node version and OS info ?

<!-- gh-comment-id:1723125856 --> @AndrewBastin commented on GitHub (Sep 18, 2023): @SaailN can we also get your node version and OS info ?
Author
Owner

@KrystianDziedziola commented on GitHub (Dec 21, 2023):

I had a similar problem and using the latest Node version fixed it.

I was using an old version of the Node because of the requirements of a project. If you're in a similar situation, you can use nvm to keep multiple versions of the Node.

<!-- gh-comment-id:1866276244 --> @KrystianDziedziola commented on GitHub (Dec 21, 2023): I had a similar problem and using the latest Node version fixed it. I was using an old version of the Node because of the requirements of a project. If you're in a similar situation, you can use [nvm](https://github.com/nvm-sh/nvm) to keep multiple versions of the Node.
Author
Owner

@jamesgeorge007 commented on GitHub (Apr 10, 2024):

@SaailN, can you try with the latest version of the CLI? Please ensure the Node.js version is at least v18.

<!-- gh-comment-id:2046891587 --> @jamesgeorge007 commented on GitHub (Apr 10, 2024): @SaailN, can you try with the latest version of the CLI? Please ensure the Node.js version is at least `v18`.
Author
Owner

@joeljstephen commented on GitHub (Apr 18, 2024):

@SaailN I will be closing this issue. If you still face the issue on the latest builds, please feel free to reopen the issue.

<!-- gh-comment-id:2063163365 --> @joeljstephen commented on GitHub (Apr 18, 2024): @SaailN I will be closing this issue. If you still face the issue on the latest builds, please feel free to reopen the issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1088
No description provided.