node.js - 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!
解决方案
推荐阅读
- javascript - App.post 返回空的花括号集
- ionic-framework - 如何使用 Ionic 5-React 在 IonGrid 上启用水平滚动
- go - 加密的确定性伪随机字节
- javascript - ```type="module"``` 或导入时函数不起作用
- c++ - 实现自定义电源运算符时非常奇怪的错误
- java - 每当我按下按钮时,如何制作一个令人耳目一新的项目面板?
- flutter - 在 Flutter 中识别字符串中的日期
- rest - 远程 VM 上的 TensorFlow Serving 以服务来自客户端的 HTTP 预测请求
- linux - 如何获取数组中的最大值和最小值?
- django - Request.GET 在自定义 HTML Django Rest Framework 渲染器模板中不可用