Error when running the Repl
Hi! I have an error that doesn't let me run my Repl. The error says:
Replit: Updating package configuration --> npm install C: npm ERR! code EWINDOWSPATH npm ERR! Can't install from windows path on a non-windows system: C: npm ERR! A complete log of this run can be found in: npm ERR! /home/runner/.npm/_logs/2021-07-30T14_48_24_479Z-debug.log exit status 1 Replit: Package operation failed.
Please help by commenting/answering this post!
Please do read the error. As a reminder replit runs on Linux, and not on windows.
Did you do something like this?
const ... = require("C:/.../node_modules/...");
you can make them relative*, like this:
const ... = require("./folder/folder.js");
by relative i mean relative to the file the code is on.