[SOLVED] Error when updating to 1.5.2 (waiting 1.5.2.2)

Hello, for the first time I got an error when updating and I cannot see where it comes from :

meteor udpate

gives

Errors prevented isopacket load:              
                                              
While loading isopacket `ddp`:
module.js:325:15: Cannot find module '/home/roro/mypath/node_modules/crypto'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.require (/tools/isobuild/bundler.js:1900:22)
at meteorInstall.node_modules.meteor.random.random.js (packages/random/random.js:11:24)
at fileEvaluate (packages/modules-runtime.js:333:9)
at require (packages/modules-runtime.js:228:16)
at <runJavaScript-3>:350:1
at <runJavaScript-3>:362:3


/home/roro/.meteor/packages/meteor-tool/.1.5.2_1.qoo64v++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:218
      throw error;
      ^

Error: isopacket load failed?
    at loadIsopacketFromDisk (/tools/tool-env/isopackets.js:299:11)
    at /tools/tool-env/isopackets.js:96:23
    at Object.exports.noYieldsAllowed (/tools/utils/fiber-helpers.js:37:14)
    at Object.load (/tools/tool-env/isopackets.js:88:23)
    at new ServiceConnection (/tools/meteor-services/service-connection.js:29:28)
    at Object.exports.openServiceConnection (/tools/meteor-services/auth-client.js:12:10)
    at openPackageServerConnection (/tools/packaging/package-client.js:23:21)
    at _updateServerPackageData (/tools/packaging/package-client.js:151:14)
    at /tools/packaging/package-client.js:129:12
    at /tools/utils/buildmessage.js:334:18
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:333:36
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at Object.enterJob (/tools/utils/buildmessage.js:324:26)
    at Object.exports.updateServerPackageData (/tools/packaging/package-client.js:128:23)
    at /tools/packaging/catalog/catalog-remote.js:777:36
    at /tools/utils/buildmessage.js:334:18
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:333:36
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at Object.enterJob (/tools/utils/buildmessage.js:324:26)
    at [object Object]._.extend.refresh (/tools/packaging/catalog/catalog-remote.js:776:18)
    at Object.catalog.refreshOrWarn (/tools/packaging/catalog/catalog.js:48:22)
    at [object Object].catalog.Refresh.OnceAtStart.beforeCommand (/tools/packaging/catalog/catalog.js:21:16)
    at /tools/cli/main.js:1479:32
    at /tools/utils/buildmessage.js:334:18
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:333:36
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at Object.enterJob (/tools/utils/buildmessage.js:324:26)
    at /tools/cli/main.js:1478:20

DDP and crypto seems to be very intern to meteor, aren’t they ? Anyone with the same issue ?

My version when I type meteor version is 1.5.1

See:

A fix is coming shortly (likely in a 1.5.2.2 release).

1 Like

ok thanks, just waiting for the release 1.5.2.2 then.

first remove node_modules folder rm -rf node_modules

then
remove crypto from package.json

now do
meteor npm install
meteor update

then do
meteor add meteor-node-stubs

and it should work (it did for me in 4 repro’s)

1 Like

In my case, it was the meteor-random npm package that had crypto as a dependency. Following @satya’s advice worked for me.