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

Error: Cannot find module 'node:stream' #98

Open
luckyzluz opened this issue Dec 19, 2022 · 2 comments
Open

Error: Cannot find module 'node:stream' #98

luckyzluz opened this issue Dec 19, 2022 · 2 comments

Comments

@luckyzluz
Copy link

An error was reported about the module import.
var rotatingLogStream = require('file-stream-rotator')
There is no problem in the implementation of npm i file-stream-rotator.
No prompt Cannot find module 'file-stream-rotator'
so which modules of node are needed to support the normal use of this module(node:stream).
node version : v14.16.0
npm version: v6.14.11
file-stream-rotator version: v1.0.0

@rogerc
Copy link
Owner

rogerc commented Dec 19, 2022

@luckyzluz I've just tried it with the latest v14 release which is v14.21.2 and gone back to the earliest working version which is v14.18.0. Give that a go if you can upgrade node. If not, you can use the previous release although not ideal because of a CVE on the library used moment.js

@happyastronaut
Copy link

Same issue here. Node v16.14.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants