首页 > 解决方案 > NPM update failed. Error says to remove file?

问题描述

Im having a hard time trying to update npm it crashes when i run npm i -g npm and it says i have to remove an existing file "file already exists, symlink '../../../lib/node_modules/npm/man/man1/npx.1' -> '/usr/local/share/man/man1/npx.1' Remove the existing file and try again". After that i try to run a npm command and my terminal says "zsh: command not found: npm". Ive tried to look for a file under that but no luck. If anyone has a better understanding of this i would appreciate the help!

标签: node.jsnpmnpm-installnpm-update

解决方案


推荐阅读