node.js / mac terminal - installing npm
NickName:Rasheed M Ask DateTime:2021-09-23T11:58:25

node.js / mac terminal - installing npm

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

Answers
Albert 2022-08-08T21:56:09

This worked for me:\nGo to System Preferences/Security & Privacy/Full Disk Access\nAnd give permission to the terminal, you must write your password",


More about “node.js / mac terminal - installing npm” related questions