npm install discord.io winston –save 404

npm install discord.io winston –save 404

我一直在关注 this tutorial 关于创建 discord bot 的内容,我毫无问题地进入了第 9 步,但是当我输入 npm install discord.io winston – save 进入终端这是我得到的:

    npm ERR! code E404
npm ERR! 404 Not Found - GET http://registry.npmjs.org/- - Not found
npm ERR! 404
npm ERR! 404  '-@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Utente\AppData\Roaming\npm-cache\_logs20-03-11T14_03_20_199Z-debug.log

那个网站上写的很糟糕。命令应该是:

npm install discord.io winston --save

注意 2 个减号,而不是一个