我尝试在 Visual Studio Code 中的终端上安装 discord.js。但是每当我运行npm init -yor时npm install discord.js,我都会收到一条错误消息,每次都会这样说:
npm :术语“npm”未被识别为 cmdlet、函数、脚本文件或可运行程序的名称。检查名称的拼写,或者如果包含路径,请验证路径是否正确并重试。在行:1 字符:1
- npm
+ CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
我该如何解决这个问题并安装 discord.js?