If you're using OS X or Windows, use one of the installers from the Node.js download page. If you use Linux, we recommend that you use a NodeSource installer. If you are unable to use a Node version manager, you can use a Node installer to install both Node.js and npm on your system. Using a Node installer to install Node.js and npm Node version managers allow you to install and switch between multiple versions of Node.js and npm on your system so you can test your applications on multiple versions of npm to ensure they work for users on different versions. ![]() Next you'll need to open your terminal.Npm -v Using a Node version manager to install Node.js and npm Navigate to a suitable place on your machine and create a new folder named discord-bot (or whatever you want). ![]() However, before you install anything, you should set up a new project folder. npm comes with every Node installation, so you don't have to worry about installing that. To use discord.js, you'll need to install it via npm (Node's package manager). On Linux, you can consult this page open in new window to determine how you should install Node. Use a package manager like Homebrew open in new window with the command brew install node.Download the latest version from the Node.js website open in new window, open the package installer, and follow the instructions.Download the latest version from the Node.js website open in new window, open the downloaded file, and follow the steps from the installer. On Windows, it's as simple as installing any other program. If it outputs v16.9.0 or higher, then you're good to go! Otherwise, continue reading. To check if you already have Node installed on your machine (e.g., if you're using a VPS), run node -v in your terminal.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |