Node.js在Windows上安装问题

问题描述 投票:0回答:1

我正在尝试编写一个不和谐的机器人。

当我将Node.js安装到Path时,一切似乎都很好。但是,然后我转到Visual Studio Code,键入终端npm init并出现此错误:

  • npm init
  • ~~~ CategoryInfo:ObjectNotFound:(npm:String)[],CommandNotFoundException FullyQualifiedErrorId:CommandNotFoundException

我不知道如何解释或修复此错误。

node.js discord
1个回答
0
投票

嗨,这是很多像你这样的用户的问题。没有3000解决方案。最简单的方法(也是我推荐的方法)是使用https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows提供的手动安装方法如果问题仍然存在,我邀请您尝试重新安装Nodejs并获取最新版本(此处为9.3.0)https://nodejs.org/en/

© www.soinside.com 2019 - 2024. All rights reserved.