[英]Install discord.js on debian
I am trying to install discord.js
to make discord bots i was trying to get it but i can't find a way to get it.我正在尝试安装
discord.js
来制作 discord 机器人,我试图获得它,但我找不到获得它的方法。 All i could find is npm i discord.js
but i get told bash: npm unknown command
or something please help.我能找到的只是
npm i discord.js
但我被告知bash: npm unknown command
或帮助。 By the way, i tried using sudo apt-get install discord.js
but it says unknown package 'discord.js'
.顺便说一句,我尝试使用
sudo apt-get install discord.js
但它说unknown package 'discord.js'
。
$ npm i discord.js
bash: npm: command not found
$ sudo apt-get install discord.js
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package discord.js
E: Couldn't find any package by glob 'discord.js'
E: Couldn't find any package by regex 'discord.js'
discord.js
is not a package you can install from the Debian package repositories. discord.js
不是 package 您可以从 Debian ZEFE90A8E604A7C840E88D0 存储库安装。
As others have mentioned it is a node.js module and can be installed through npm.正如其他人所提到的,它是一个 node.js 模块,可以通过 npm 安装。 However, it appears you do not have npm installed.
但是,您似乎没有安装 npm。
bash: npm: command not found
bash:npm:找不到命令
It is possible that node.js was installed without npm.安装 node.js 时可能没有安装 npm。 I would recommend that you try installing npm explicitly, then running
npm init
and npm i discord.js
我建议您尝试显式安装 npm,然后运行
npm init
和npm i discord.js
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.