Cannot install winston on REPL due to a breaking change in readable-stream dependency
Closed this issue · 0 comments
deepal commented
Cannot install winston
on REPL and it throws the following error.
Creating workspace...
Initializing workspace...
Workspace loaded!
> const winston = require('winston')
Thrown:
{ Error: Cannot find module '/Users/djayasekara/.baapan/workspace/node_modules/readable-stream/writable'
at require (internal/modules/cjs/helpers.js:25:18)
at Module._module.Module.require (/Users/djayasekara/MyProjects/baapan/index.js:128:12)
at Module.require (internal/modules/cjs/loader.js:690:17)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) code: 'MODULE_NOT_FOUND' }
>
It appears that, when winston is installed on REPL, it installs the latest version of readable-stream 3.4.0
(as of this writing). But winston fails trying to require readable-stream/writable
module which is available in v2.4.1 of readable-stream.