Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Crashes on Node v12.13.1 #34

Closed
1 task done
begin-again opened this issue Feb 10, 2023 · 0 comments · Fixed by #35
Closed
1 task done

[Bug]: Crashes on Node v12.13.1 #34

begin-again opened this issue Feb 10, 2023 · 0 comments · Fixed by #35
Labels
bug Something isn't working

Comments

@begin-again
Copy link

Expected Behavior

I expect that when running from command line utilizing Nodejs 12.13.1 that the command depngn 12.13.1 will not crash

Actual Behavior

It throws an error about not being able to find module 'fs/promises'

Steps to Reproduce

  1. install depngn globally with npm (npm i -g depngn)
  2. cd into a repository
  3. run the command, depngn 12.13.1

Additional Information

I use a node version manager or windows and have depngn installed globally with node v12.13.1

What package manager are you seeing the problem with?

npm

Relevant log output

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

Error: Cannot find module 'fs/promises'
Require stack:
- C:\Users\someuser\bin\nvm\v12.13.1\node_modules\depngn\dist\cli.cjs
- C:\Users\someuser\bin\nvm\v12.13.1\node_modules\depngn\bin\depngn.cjs
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
    at Function.Module._load (internal/modules/cjs/loader.js:690:27)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (C:\Users\someuser\bin\nvm\v12.13.1\node_modules\depngn\dist\cli.cjs:8:16)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Module.require (internal/modules/cjs/loader.js:852:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\someuser\\bin\\nvm\\v12.13.1\\node_modules\\depngn\\dist\\cli.cjs',
    'C:\\Users\\someuser\\bin\\nvm\\v12.13.1\\node_modules\\depngn\\bin\\depngn.cjs'
  ]
}

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant