Im trying to install npm for a to start a new project.
When i enter npm install, i get the following error in my terminal:
path.js:1086
cwd = process.cwd();
^
Error: EPERM: operation not permitted, uv_cwd
at Object.resolve (path.js:1086:25)
at Function.Module._resolveLookupPaths (internal/modules/cjs/loader.js:479:17)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:574:20)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at /usr/local/lib/node_modules/npm/bin/npm-cli.js:19:21
at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:145:3)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
Copyright Notice:Content Author:「Rasheed M」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/69293865/node-js-mac-terminal-installing-npm