How to fix npm errors without writing sudo in VS Code terminal?

I have to write sudo before running any npm command in my VS code terminal in MacBook Air (OS: macOS Sonoma 14.4).

Example: sudo npm install sudo npc create-react-app my app If I didn't "sudo" the command will not execute, while others users are doing without writing sudo.


FYI: I have node.js v20.10.0 and npm version 10.2.4 installed globally in my system.

MacBook Air 13″, macOS 14.4

Posted on Mar 31, 2024 5:08 AM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to fix npm errors without writing sudo in VS Code terminal?

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