关于npm install 安装报错的问题缺少python / sass..... Can't find python executable "python" , you can set the...

关于npm install 安装报错的问题

npm install 报错 未安装python报错:报npm install 安装依赖缺少python

去Python官网下载python安装 ,安装的时候选择
https://www.python.org/
并在环境变量中 path项中加入python的安装地址,

有时安装完了python , sass 也会报错。

因为npm的题,安装淘宝的镜像 使用cnpm 镜像 ,在项目文件夹下运行
npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/

  • 最后在运行npm install 应该就不会报错了 总之就是报错报什么就去看看是不是缺什么环境,或者什么依赖安装不上 找办法安装上所需的环境 依赖。自然就能解决问题了。。
发布了2 篇原创文章 · 获赞 2 · 访问量 222

猜你喜欢

转载自blog.csdn.net/weixin_42409911/article/details/103886698
今日推荐