更新时间:2022-06-25 03:54:14
我想回答我自己的问题.我的计算机的全局 npm 安装路径是错误的.
I would like to answer my own question. The global npm install path was wrong for my computer.
npm 配置获取前缀
然后我跑去把路径放在它应该放在的地方.这个问题让我很头疼.希望它可以帮助某人.
Then I ran to put the path where it should be. This problem gave me a lot of head aches. Hope it helps someone.
npm 配置设置前缀/usr/local
npm config set prefix /usr/local