Error in Node.js Scripting within Switch

Post Reply
gregbowers
Newbie
Posts: 3
Joined: Thu Apr 18, 2024 8:04 am

Error in Node.js Scripting within Switch

Post by gregbowers »

Hello

I'm facing an issue while working with Node.js scripting in Switch. When trying to execute a script, I am getting a 'Module not found' error for a dependency, even though it's installed correctly using npm. I've rechecked the paths and verified that the module is listed in the package.json file.

Has anyone else faced this issue before, and if so, how did you resolve it? Any help would be greatly appreciated.

Thank you for your assistance!

Thank you
gregbowers
memberlist.php?mode=viewprofile&u=4437info
plutinolabs
Newbie
Posts: 8
Joined: Sat May 13, 2023 2:07 pm

Re: Error in Node.js Scripting within Switch

Post by plutinolabs »

Hi gregbowers

I've been going through that last couple of weeks. In my case, I found downgrading modules worked for me.
I think some of the newer modules are incompatible with the node runtime that's installed with switch?
tdeschampsBluewest
Member
Posts: 38
Joined: Tue Jun 01, 2021 11:57 am

Re: Error in Node.js Scripting within Switch

Post by tdeschampsBluewest »

There is a similar issue for nodeFetch and some release of axios, downgrading your package can (sometime) fix the issue as stated earlyer

Example of installation : npm i axios@0.27.2
Post Reply