Pulling projects from gitee and idea deployment issues

Problem with front-end deployment of projects pulled by gitee: the version of node originally installed on this machine is 18

Finally, I downloaded 14 and configured the environment, but it still reported an error of 18, so I deleted the original 18 and set it up again. Create a cache and global files in nodeJs, and then make some environment settings. Pay attention to setting up Taobao. Mirror for easy and fast downloading.

Original link for detailed operations:

https://blog.csdn.net/lijie0213/article/details/124521239

Later, there was a problem with downloading sass, so the solution was:

Solution

The first step is to delete the node_modules plug-in package
The second step is to configure a separate image for node-sass
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/

Original link: https://blog.csdn.net/mmiaoChong/article/details/122296809?ops_request_misc=&request_id=&biz_id=102&utm_term=Building:%20D:%5CnodeJs%5Cnode.exe%20E&utm_medium=distribute.pc_search_result.none-task -blog-2 all sobaiduweb~default-1-122296809.142

If the above solution to Sass doesn't work, you can add this step:

https://blog.csdn.net/yiyuzz/article/details/112016863?ops_request_misc=&request_id=&biz_id=102&utm_term=Building:%20D:%5CnodeJs%5Cnode.exe%20E&utm_medium=distribute.pc_search_result.none-task-blog-2allsobaiduweb~default-0-112016863.142

PS:

  1. Remember to delete the existing node_modules before npm install;
  2. In case of infringement or deletion, please remember to contact me, thank you.

I wish you all the best.

おすすめ

転載: blog.csdn.net/m0_50695462/article/details/129630694