Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Error: Cannot find module 'fs/promises' #22

Open
GatoAmarilloBicolor opened this issue May 18, 2021 · 1 comment
Open

Error: Cannot find module 'fs/promises' #22

GatoAmarilloBicolor opened this issue May 18, 2021 · 1 comment

Comments

@GatoAmarilloBicolor
Copy link

Hello there, i get this error, ubuntu 20.04

$ minty deploy

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

Error: Cannot find module 'fs/promises'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/fenix/src/minty/src/index.js:6:12)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)

@birick888
Copy link

Error when your node version is 12 or above
Search all require("fs/promises"); and replace by require("fs").promises;

pelayomendez pushed a commit to pelayomendez/minty that referenced this issue Jul 16, 2021
Fixes issue yusefnapora#22

Updated module imports

*  src/deploy.js
Updated fs promises import for Node 12+

* src/index.js
Removed unused promises import

* src/minty.js
Updated fs promises import for Node12+
knyar pushed a commit to knyar/minty that referenced this issue Jan 3, 2022
Fixes issue yusefnapora#22

Updated module imports

*  src/deploy.js
Updated fs promises import for Node 12+

* src/index.js
Removed unused promises import

* src/minty.js
Updated fs promises import for Node12+
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants