0

I was working on a project,and suddenly Node started acting up. It gives me error code 1 when I try to install any library. I googled for this error and found stackoverflow answers for the same,which included some solutions like deleting package-lock.json file,clearing the cache and trying npm install,using verbose method etc.

However,even after using these methods,I am not able to fix my error. The screenshot attached below shows the error nodejs has when I run the command npm install. enter image description here

The entire list of error is very long,and I can send the entire log,in case someone requires it for debugging purpose.

Kindly help me with the issue.

Girik Garg
  • 87
  • 7
  • It's showing the compiler failing during the build of `node-sass`, but not the reason _why_ it's failing. That should probably be somewhere towards the end. – robertklep Jun 16 '22 at 15:50
  • @robertklep I am relatively new to NodeJS, so can you elaborate a bit on what might be wrong? – Girik Garg Jun 16 '22 at 15:51
  • No, because your question isn't showing the reason why the compilation is failing. – robertklep Jun 16 '22 at 15:53
  • @robertklep How can I find out the reason why compilation is failing? – Girik Garg Jun 16 '22 at 15:58
  • Well, like I said: the reason why it's failing is probably located somewhere towards the end of the log. You could add the last 100 or so lines to your question (as text, in a code block, not as an image!) – robertklep Jun 16 '22 at 16:00
  • https://cl1p.net/error @robertklep This is the entire log, I would appreciate if you could help me out! – Girik Garg Jun 16 '22 at 16:01
  • Your project relies on `node-sass@4.3.0`, which cannot be used with the version of Node.js you use (v16). You need to upgrade to (at least) `node-sass@6.0.1`. See the duplicate answer for more details. – robertklep Jun 16 '22 at 16:12

0 Answers0