geekskai / vue3-jd-h5

:fire: Based on vue3.x,vite5.x, vant3.0.0, vue-router v4.0.0-0, vuex^4.0.0-0, vue-cli3, mockjs, imitating Jingdong Taobao, mobile H5 e-commerce platform! 基于vue3.0.0 ,vant3.0.0,vue-router v4.0.0-0, vuex^4.0.0-0,vue-cli3,mockjs,仿京东淘宝的,移动端H5电商平台!
https://geekskai.github.io/vue3-jd-h5/
874 stars 240 forks source link

请问是依赖于Python吗? #12

Closed cn1001wang closed 4 years ago

cn1001wang commented 4 years ago
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
geekskai commented 4 years ago

你看下你的npm镜像是淘宝的还是其他的,估计你是在安装node_modules依赖的时候,node-sass安装失败! 你可以这样尝试:

  1. 删除node_modules文件夹
  2. 运行 npm install --global windows-build-tools
  3. 使用npm重新安装node_modules或node-sass
cn1001wang commented 4 years ago

多谢反馈,我在网上也找到解决方法了; node-sass 安装失败的各种坑 全局安装

  1. npm install -g node-gyp;
  2. npm install --global --production windows-build-tools

然后就可以了