Apple Event: May 7th at 7 am PT

After updating to macOS Sonoma 14.2.1 i can no longer use NPM commands

After updating to 14.2.1, my npm update, install, start, etc. commands no longer work; if I run them, they freeze after starting. for example


npm start

> studyapp@0.1.0 start

> react-scripts start


And then sits there and never continues.

MacBook Pro (M1, 2020)

Posted on Jan 5, 2024 10:25 AM

Reply
2 replies

Jan 5, 2024 10:50 AM in response to average person

average person wrote:

After updating to 14.2.1, my npm update, install, start, etc. commands no longer work; if I run them, they freeze after starting. for example


Check for updates to macOS, npm, and React, then contact the folks supporting these packages.


Here are the fora where React suggests asking questions: https://react.dev/community


For npm: https://www.npmjs.com/support

Apr 21, 2024 10:38 PM in response to average person

I too faced this same issue. After upgrading to Sonoma, npm start wasn't working in react projects and any other node projects as well.


The solution that I have found that has worked is to delete the node_modules folder and re-install it using the npm install command. This fixed it for me.


I came across this solution on reddit https://www.reddit.com/r/react/comments/16tkx8k/macos_sonama_vscode_npm_start_fix/

After updating to macOS Sonoma 14.2.1 i can no longer use NPM commands

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.