Cannot find module 'node:os' #33
Unanswered
felipe-coelho
asked this question in
Q&A
Replies: 2 comments 2 replies
-
"node:os" library is only availabe for node version >= 14 What is your node version.? This node dependency issue will be fixed on the next release. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Fixed the issue on #34 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to run
npx directory-serve
and got this error:Error: Cannot find module 'node:os'
Require stack:
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
at Function.Module._load (internal/modules/cjs/loader.js:730:27)
at Module.require (internal/modules/cjs/loader.js:957:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (C:\Users\felipec\AppData\Roaming\nvm\v14.17.0\node_modules\directory-serve\lib\helper\network.js:5:12)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Module.require (internal/modules/cjs/loader.js:957:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\felipec\AppData\Roaming\nvm\v14.17.0\node_modules\directory-serve\lib\helper\network.js',
'C:\Users\felipec\AppData\Roaming\nvm\v14.17.0\node_modules\directory-serve\lib\helper\index.js',
'C:\Users\felipec\AppData\Roaming\nvm\v14.17.0\node_modules\directory-serve\bin\index.js'
]
}
I installed npm i -g nodeos, but im not sure if its the right package.
Anyway the error persist.
Beta Was this translation helpful? Give feedback.
All reactions