npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Meteor apps crashes when initialized with NPM (Error: Cannot find module 'stream'), but works with Yarn

What I Wanted to Do

npm install, and then run the app with the meteor command.

What Happened Instead

Error: Cannot find module 'stream'

Reproduction Steps

To get rid of the issue:


This might be a Meteor issue, but since using Yarn makes the issue go away I thought it might be related to npm somehow.

This has now been reported by 3-4 users who all managed to fix the issue by using Yarn instead.

Platform Info

$ npm --versions
{ Vulcan: '1.12.15',
  npm: '6.7.0',
  ares: '1.10.1-DEV',
  cldr: '32.0',
  http_parser: '2.8.0',
  icu: '60.1',
  modules: '57',
  napi: '3',
  nghttp2: '1.32.0',
  node: '8.12.0',
  openssl: '1.0.2p',
  tz: '2017c',
  unicode: '10.0',
  uv: '1.19.2',
  v8: '6.2.414.66',
  zlib: '1.2.11' }
$ node -p process.platform