Broken symbolic link on running app

Hi All,
Just upgraded to 2.7.1 and I can’t run my app anymore …

I’m getting error message below…

Error: Broken symbolic link encountered at /Users/greg/WebstormProjects/incidentplus/node_modules/.bin/meteor-installer
at isWithinProdPackage (/tools/isobuild/bundler.js:497:19)
at /tools/isobuild/builder.js:724:15
at Array.forEach ()
at walk (/tools/isobuild/builder.js:656:34)
at /tools/isobuild/builder.js:734:11
at Array.forEach ()
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:2550:17
at Function.each (/Users/greg/.meteor/packages/meteor-tool/.2.7.1.15wmpqm.mcdc++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/underscore/underscore-node-f-pre.js:1321:7)
at JsImage.write (/tools/isobuild/bundler.js:2507:7)
at ServerTarget.write (/tools/isobuild/bundler.js:2762:13)
at /tools/isobuild/bundler.js:2930:30
at /tools/isobuild/bundler.js:3069:11
at Array.forEach ()
at /tools/isobuild/bundler.js:3064:26
at /tools/isobuild/bundler.js:3437:22
at Object.capture (/tools/utils/buildmessage.js:283:5)
at bundle (/tools/isobuild/bundler.js:3243:31)
at /tools/isobuild/bundler.js:3186:32
at Slot.withValue (/Users/greg/.meteor/packages/meteor-tool/.2.7.1.15wmpqm.mcdc++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/@wry/context/lib/context.esm.js:69:29)
at Object.withCache (/Users/greg/.meteor/packages/meteor-tool/.2.7.1.15wmpqm.mcdc++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/tools/fs/tools/fs/files.ts:1540:39)
at Object.bundle (/tools/isobuild/bundler.js:3186:16)
at /tools/runners/run-app.js:581:24
at Function.run (/Users/greg/.meteor/packages/meteor-tool/.2.7.1.15wmpqm.mcdc++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/tools/tool-env/tools/tool-env/profile.ts:289:14)
at bundleApp (/tools/runners/run-app.js:580:34)
at AppRunner._runOnce (/tools/runners/run-app.js:627:35)
at AppRunner._fiber (/tools/runners/run-app.js:949:28)
at /tools/runners/run-app.js:410:12

Process finished with exit code 1

Help!

Thanks
Greg

Seems all of my symlinks in /node_modules/.bin are broken. Any ideas?

Thanks
Greg

It happens to me from time to time as well, even on older Meteor versions (e.g., 2.4.1). In my case these are never the ones I actually need, thus removing them does the job for me. Here’s a oneliner:

find node_modules/.bin -xtype l -delete
2 Likes

I had it today and your solution works

Thanks guys. Now just have to replace all of the “not working anymore”. packages…