file-stream-rotator icon indicating copy to clipboard operation
file-stream-rotator copied to clipboard

Error: Cannot find module 'node:stream'

Open luckyzluz opened this issue 2 years ago • 2 comments

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 avatar Dec 19 '22 06:12 luckyzluz

@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

rogerc avatar Dec 19 '22 15:12 rogerc

Same issue here. Node v16.14.2

happyastronaut avatar Jan 09 '23 11:01 happyastronaut