Skip to content
Sign upLog in
← Back to Community

Error when running the Repl

Profile icon

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!

Profile icon
Profile icon

Hİ pls lunanom and pillow to erorr to goto replit please to help

Profile icon

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.

Profile icon

You're trying to import something from windows, which is not possible on a Linux system, such as replit.