Error message: "Error on MacOS - Symbol not found: ____chkstk_darwin when executing node or npm commands"

Whenever I try to run node or npm commands on the terminal (like node -v, npm -v, or just node or npm), I encounter the following error message:

dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
  Referenced from: /Users/alvarez/.nvm/versions/node/v18.12.0/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: /Users/alvarez/.nvm/versions/node/v18.12.0/bin/node (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib

Abort trap: 6

I am currently using MacOS version 10.13.6.

This issue started after I installed node from their official website and ran the provided pkg file. Even after uninstalling and reinstalling node using nvm (the latest version available), I still encountered the same error as mentioned above. The error I faced when I had initially installed node through the pkg file is quite similar:

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

Abort trap: 6

Answer №1

It appears that node v18 requires macOS 10.15 or a higher version. You can either consider downgrading your node version to 17 or upgrading your macOS.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Experiencing issue: {"errors":[{"message":"A query string must be provided."}]}

Here is the code snippet from my app.js file: const express = require('express'); const bodyParser = require('body-parser'); const graphqlHttp = require('express-graphql').graphqlHTTP; const { buildSchema } = require('gra ...

Encountering a "Cannot GET /PATH" error while developing a NUXT application due to a DOT present in

In my nuxt application, I encountered a peculiar issue. When I execute npm run dev, everything functions properly. However, after running npm run build and then npm run start, I face the error message stating cannot GET [path of the page here] I noticed t ...

Is there a way to specify a different version of node-gyp for npm to use during package installations?

Running Node 16.13.2 LTS with Visual Studio 2022 has caused an issue during the package installation process triggering node-gyp and resulting in a failure. npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node build.js || nodejs build. ...

Generating a safe POST connection with express.js

Is there a simple method to generate a link for submitting a POST request using Express.js or a plugin? This approach can also be employed to enhance security for important actions like user deletion, including CSRF protection. In some PHP frameworks lik ...

Should we integrate sailsjs with reactjs or reactjs with sailsjs? What steps can be taken to achieve this integration?

Currently, I am using SailsJS as my web API and ReactJS for the frontend. Can someone please guide me on how to integrate one into the other seamlessly? I am a beginner in this field, so feel free to highlight any mistakes I may have made. ...

The connectivity issue arises when Ubuntu 16.04 Node.JS application fails to establish a connection with the MySQL database, displaying the error message: "Error:

I have been attempting to launch my Node.JS application on an Ubuntu virtual machine that relies on MySQL. However, upon running the app, I encountered an error related to what seems to be MySQL. events.js:182 throw er; // Unhandled 'error&apos ...

What is the reason behind the node_modules folder being marked as read-only by VS 2017 in a .Net Core App?

I recently ran into an issue with my .Net Core application that uses Angular for client-side code. The default template in VS 2017 seemed to be causing my node_modules folder to become read-only. Previously, I could install packages using the command line ...

Save the output of a knex query to a variable

I'm struggling to assign the result of a select query using Knexjs to a variable. Here is my code: function getAllCategories() { let categories; categories = database.from("categories").select("category").then(function (rows) { for (let row of ro ...

Unable to authenticate the initial certificate with Node

Out of the blue, my Node environments are experiencing issues with installing packages and freezing at idealTree:my-app : sill idealTree buildDeps Although I attempted to fix it by using npm config set registry http://registry.npmjs.org/ --global, it didn ...

What is preventing my application (docker) from connecting to the database?

Encountering a frustrating issue here: I've developed a NodeJS application with a server listening on port number 3000. The app includes simple operations such as post, put, and read, which interact with a database running in a Docker Container on por ...

Running `bower install` in a Putty session has no effect

Currently working on configuring my project within an Amazon EC2 instance using Bitnami as the AMI. Most things have gone smoothly, however I'm encountering an issue with bower install. Strangely, it's not displaying any errors at all. Just runni ...

Cypress triggers timeout error due to oversized response

Issue Encountering a timeout error with Cypress when making a GET request. Description Using Cypress.io to send a GET request. Expecting a large response body (over 15Mb) from the API, but instead receiving an error message: "CypressError: cy.request( ...

I encountered difficulties when attempting to install npm packages

Having trouble downloading source code and building software? The README file suggests using npm tools such as npm install, npm run build, and npm run dev. However, encountering issues with npm install and failing to install packages successfully. Check o ...

Error encountered when attempting to establish a connection between socket.io and express: network error

Similar Question: socket.io: Failed to load resource I'm having trouble getting a simple express + socket.io hello world app to work. I keep receiving the following error: "NetworkError: 404 Not Found - http:// localhost:3002/socket.io/socke ...

What is the best way to implement multilanguage support in nodejs without relying on cookies or external modules?

Currently, I am in the process of transitioning all my projects to node.js in order to enhance my JavaScript skills. Using Node.js along with the Express module, one of my clients who runs a translation company has requested that I incorporate two language ...

Is it possible to use Nodemailer SMTP in Azure Functions?

I'm encountering an authentication error while attempting to implement a nodemailer service within an Azure function app. Below is the code snippet I am using: require("dotenv").config(); const nodemailer = require("nodemailer"); c ...

Ways to showcase my Node.js CLI module across various environments

As I develop a cli using nodejs, named xygcli, everything appears to be running smoothly. However, once it was published, I received feedback from some users indicating that they were unable to locate the command "xygcli not found (zsh)" Even though they ...

Flatiron incorporating WordPress-style dishes

Can someone provide guidance on how to incorporate navigation into an HTML file similar to Wordpress style? Here is my home.html file: <html> <body> (I'm unsure what code to use for the navigation bar) <div main> </di ...

Issue: The module 'react-dev-utils/getPublicUrlOrPath' cannot be located

I recently deployed my React.js application on Heroku but encountered a message stating: The Browserslist indicates that caniuse-lite is outdated and advises to run the following command: npm update. In response, I executed npm update followed by ...

Incorporate JQuery into your NodeJS project by leveraging the existing minified file

Can we integrate JQuery into Node.js and make JQuery AJAX calls without altering the syntax by using a pre-downloaded minimized JQuery file? To clarify, I have the minified file and wish to incorporate it into Node.js in this manner: var jquery = require( ...