Why i cant update the npm

sudo npm install -g npm@next
[sudo] password for unaiz: 
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
npm ERR! path /usr/local/share/man/man1/npx.1
npm ERR! code EEXIST
npm ERR! Refusing to delete /usr/local/share/man/man1/npx.1: ../../../lib/node_modules/npx/npx.1 symlink target is not controlled by npm /usr/local/share/man/man1
npm ERR! File exists: /usr/local/share/man/man1/npx.1
npm ERR! Move it away, and try again.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/unaiz/.npm/_logs/2021-05-30T05_01_44_664Z-debug.log

What are you trying to do? That will help us figure out the problem

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.