Just noticed that the issue even occurs when I do a fresh npm i in my Meteor 2 version. Maybe it’s related to my upgrade to a M3 Mac a year ago? I think I never made a fresh install since. If I remove bcrypt, it works on Meteor 2 again.
This issue does not occur on my AWS Ubuntu deployments via mup. They are working fine.
Yet now I am seeing this when trying to run the Meteor 2 app:
Error: Broken symbolic link encountered at /Users/tom/dev/marble/webapp/node_modules/.bin/detect-libc
at isWithinProdPackage (/tools/isobuild/bundler.js:495:19)
at /tools/isobuild/builder.js:724:15
at Array.forEach (<anonymous>)
at walk (/tools/isobuild/builder.js:656:34)
at /tools/isobuild/builder.js:734:11
at Array.forEach (<anonymous>)
at walk (/tools/isobuild/builder.js:656:34)
at Builder._copyDirectory (/tools/isobuild/builder.js:788:5)
at Builder.copyNodeModulesDirectory (/tools/isobuild/builder.js:550:17)
at /tools/isobuild/bundler.js:2569:17
at Function.each (/Users/tom/.meteor/packages/meteor-tool/.2.16.0.vsqqeh.45bko++os.osx.arm64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.arm64/dev_bundle/lib/node_modules/underscore/underscore-node-f-pre.js:1321:7)
at JsImage.write (/tools/isobuild/bundler.js:2526:7)
at ServerTarget.write (/tools/isobuild/bundler.js:2781:13)
at /tools/isobuild/bundler.js:2949:30
at /tools/isobuild/bundler.js:3088:11
at Array.forEach (<anonymous>)
at /tools/isobuild/bundler.js:3083:26
at /tools/isobuild/bundler.js:3456:22
at Object.capture (/tools/utils/buildmessage.js:283:5)
at bundle (/tools/isobuild/bundler.js:3262:31)
at /tools/isobuild/bundler.js:3205:32
at Slot.withValue (/Users/tom/.meteor/packages/meteor-tool/.2.16.0.vsqqeh.45bko++os.osx.arm64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.arm64/dev_bundle/lib/node_modules/@wry/context/lib/context.esm.js:69:29)
at Object.withCache (/Users/tom/.meteor/packages/meteor-tool/.2.16.0.vsqqeh.45bko++os.osx.arm64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.arm64/tools/fs/tools/fs/files.ts:1543:39)
at Object.bundle (/tools/isobuild/bundler.js:3205:16)
at /tools/runners/run-app.js:579:24
at Function.run (/Users/tom/.meteor/packages/meteor-tool/.2.16.0.vsqqeh.45bko++os.osx.arm64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.arm64/tools/tool-env/tools/tool-env/profile.ts:289:14)
at bundleApp (/tools/runners/run-app.js:578:34)
at AppRunner._runOnce (/tools/runners/run-app.js:625:35)
at AppRunner._fiber (/tools/runners/run-app.js:947:28)
at /tools/runners/run-app.js:408:12
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.