Skip to content

RLX-OP/node.js-v17-replit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

node.js-v17-replit

Steps:

  1. Execute this script on the shell to install node and configure npm.
npm init -y && npm i --save-dev node@17 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH

Or:

npm install -D node@17

Or:

npm install --save-dev node@17
  1. Create the .replit to execute node from the shell instead of the console.
run = "npm start"
  1. Make sure to add the start script in your package.json file
  "scripts": {
    "start": "node ."
  }

Or:

In .replit file simply type

run = "npx node ."
  1. (Optional) If you had packages like discord.js before, you need to re-install those packages
npm uninstall discord.js && npm install discord.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages