Posts

Showing posts from July, 2023

ElementUI npm install errors

Image
 Why: node-sass@4 isn't compatable with NodeV16, so I changed node-sass to V6, then I run nr dev:play, ERROR:node-sass... I found this blog:https://blog.csdn.net/qq_42389120/article/details/126544241, It says that we should use node v14... After one-day's searching and trying, I tested all solutions in the Internet, no solutions worked, but I known that node-sass caused my problem , then I try to downgrade my Node version to V11(based on node-sass README ) instead of upgrade node-sass(@4.11.0) to a higher one. Follow authors' package versions!!!

RECORD A NODE-GYP COMPLATION ERROR

After a long time, I reopened my survey project and wanted to go on develop some features, but I was prompted "node-gyp err" because of the script of canvas-node, then I tried many solutions on the net, and reset my computer, re-install nvm, but this node-gyp error still exists, Then I try to install python3.10 and Visual Studio 2022 community as the terminal prompted but still had errors that Missing input files, Then I checked canvas-node repo, install some dependencies according to the wiki of the repo, it worked! * Find the problem module. * Go through the docs of the module. * Go through the error details in the terminal. Then you will fix it!!!