Skip to content

npm doesn't work with sudo #44

@skarmoutsosv

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions