adn84
adn84

Reputation: 81

Running NodeJS in MAC OS 10.13

I'm using an old MAC OS and I didn't have any issue before, but after I reset it and installed the NodeJS and I tried the node -v or even npm -v I get this error message.

adnanes-MacBook-Pro:react adnaneabid$ node -v
dyld: lazy symbol binding failed: Symbol not found: chkstk_darwin
  Referenced from: /usr/local/bin/node (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: chkstk_darwin
  Referenced from: /usr/local/bin/node (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib.

Just for info, the MAC I'm using: macOS High Sierra, version 10.13.6, Model 2011 and I can't update the OS because it's too old.

Upvotes: 2

Views: 2383

Answers (3)

user29770996
user29770996

Reputation: 1

If you want to install NodeJS >= 18 on High Sierra, you need to build from source or use custom binary for macOS 10.13. Here are the examples for NodeJS 20 (build from source) and NodeJS 22 (binary install).

If you don't want to build from source or use alternative install, you can only stick with NodeJS 17.9, which is the latest release for macOS 10.13.

Upvotes: 0

Shumon Pal
Shumon Pal

Reputation: 423

If your Mac version is below 10.14 you should install node 16 or below. The latest version 18 of Node is build for Mac OS X 10.15. This issue might be relevant

Upvotes: 2

adn84
adn84

Reputation: 81

I solved it by installing an old NodeJS version, I'm sharing a link in case someone else is getting the same error message.

Symbol not found: ____chkstk_darwin

Upvotes: 1

Related Questions