Skip to content

npm doesn't work with sudo #44

Description

@skarmoutsosv

$ npm -v
8.19.2

$ node -v
v18.10.0

$ which npm
/snap/bin/npm

$ which node
/snap/bin/node

$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin

$ npm install nodemon
up to date, audited 33 packages in 762ms
3 packages are looking for funding
run npm fund for details
found 0 vulnerabilities

$ sudo npm install -g nodemon
sudo: npm: command not found

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions