I am using npm version 8.18.0 and node version 16.17.0. When I want to run code to display in the browser an error occurs.
I am using npm version 8.18.0 and node version 16.17.0. When I want to run code to display in the browser an error occurs.
This happened to me recently. I found that this may be some third party dependencies of npm install, which need to be compiled on your machine (node-sass needs to be compiled with c++ before it can be used), or there may be problems in the download or compilation process.
Run rm -rf ./node_modules to delete node_modules folder
Run npm cache clean --force to clean npm cache file
Then run npm install to reinstall node modules or node-sass with npm install