为什么 npm 给我奇怪的错误?

嗨,我是学习 redux 的新手。
我一直在尝试在 VSC 中安装 redux。
所以我先输入命令“npm init”。
然后我输入了“npm i redux”。

结果我收到了那些错误消息。

这里是错误

npm ERR! Linux 5.8.0-63-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "redux"
npm ERR! node v14.17.0
npm ERR! npm  v3.10.10

npm ERR! cb.apply is not a function
npm ERR! 
npm ERR! If you need help,you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /home/garamsong/portfolio/practice_redux/redux_first/npm-debug.log

我也检查了我的 node 版本和 npm 版本

节点是 v14.17.0
npm 是 v3.10.10

我认为这可能是我的 npm 版本问题,所以我尝试删除 npm.. 但它不起作用..

所以我的问题是

  1. 是 npm 版本问题吗?
  2. 如果没有,有什么问题?
  3. 以及如何安装 redux?

感谢您阅读我愚蠢的问题..但这让我真的很沮丧..(顺便说一句 sudo 根本不起作用)?

heniyoumeng 回答:为什么 npm 给我奇怪的错误?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/6000.html

大家都在问