file-stream-rotator
file-stream-rotator copied to clipboard
Error: Cannot find module 'node:stream'
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
@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
Same issue here. Node v16.14.2