I've been working on a JavaScript project that requires me to import a library, but I keep running into errors with npm every time I try to use it.
Here is the error message:
npm WARN deprecated <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="caa2abb8e7bcaba6a3aeabbea5b88affe4fbe4ff">[email protected]</a>: this library is no longer supported
npm WARN deprecated <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4b3e3e222f0b78657f657b">[email protected]</a>: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="aad8cfdbdfcfd9deea988492928498">[email protected]</a>: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code 1
npm ERR! path C:\Users\danie\OneDrive\Desktop\science fair\node_modules\gl
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c prebuild-install || node-gyp rebuild
...
I've tried numerous solutions from various sources, but none seem to work for me. If anyone has any suggestions, I would greatly appreciate it. I've attempted npm update, reinstalling npm, reinstalling Node.js, and other methods. I suspect the issue might be related to Visual Studio, similar to this question (How can I fix "npm ERR! code1"), but I'm unclear on what the solution entails.
EDIT: I forgot to mention that I already have Visual Studio 2022 installed on my device, but it's located on my D: drive. I didn't think this could be causing the problem, but I'm not entirely certain.