Skip to content
Advertisement

npm install giving errors : [node version : 16.2.0 and npm version : 7.13.0]

The command used : sudo npm install I am trying to execute this command inside the a specific folder.

The package.json file is as shown:

JavaScript

I have included parts of the log file which mentioned about the errors. The logs are :

JavaScript

I have included parts of the log file which mentioned about the errors.

JavaScript

I have included parts of the log file which mentioned about the errors.

JavaScript

I have included parts of the log file which mentioned about the errors. Any help would suffice. Thanks.

Advertisement

Answer

After spending quite some time on this issue, the solution that worked for us was that “node-sass” was not yet compatible with node v16. Hence, after downgrading node version from v16 to v14, and downgrading npm from v7 to v6, it worked.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement