相关文章推荐
健身的小笼包  ·  @EnableScheduling加在什么类 ...·  9 月前    · 
潇洒的硬币  ·  MySQL关于日期为零值的处理 - 掘金·  2 年前    · 
不敢表白的豆浆  ·  spark ...·  2 年前    · 
悲伤的橙子  ·  还在为玩不了ChatGPT苦恼?这十几个开源 ...·  2 年前    · 
Code  ›  npm安装PYTHON env开发者社区
python 编程语言 node desktop
https://cloud.tencent.com/developer/article/2026892
可爱的领带
9 月前
wade

npm安装PYTHON env

前往小程序,Get 更优 阅读体验!
立即前往
腾讯云
开发者社区
文档 建议反馈 控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
发布
首页
学习
活动
专区
工具
TVP 最新优惠活动
返回腾讯云官网
wade
首页
学习
活动
专区
工具
TVP 最新优惠活动
返回腾讯云官网
社区首页 > 专栏 > npm安装PYTHON env

npm安装PYTHON env

作者头像
wade
发布 于 2022-06-20 19:13:07
2K 0
发布 于 2022-06-20 19:13:07
举报
文章被收录于专栏: coding个人笔记

最近拉了几个GitHub的项目,好多个安装依赖的时候就报错了,其中一个node-sass的我是真没想到。

先说说npm、cnpm、yarn install的时候,同一个项目会有不同的结果,在同一个项目下:npm:

代码语言: javascript
复制
npm ERR! Found: swiper@6.8.4
npm ERR! node_modules/swiper
npm ERR! swiper@"^6.3.5" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer swiper@"^5.2.0" from vue-awesome-swiper@4.1.1
npm ERR! node_modules/vue-awesome-swiper
npm ERR! vue-awesome-swiper@"^4.1.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\dell\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dell\AppData\Local\npm-cache_logs\2022-05-11T01_47_03_130Z-debug.log

会直接报错包的版本问题,估计yarn和cnpm的报错也会有,但是不知道为什么会报错这个。

cnpm、yarn:

代码语言: javascript
复制
 ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (C:\Users\dell\Desktop\my\lowcode\quark-h5-master\node_modules_node-gyp@3.8.0@node-gyp\lib\configure.js:484:19)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Users\dell\Desktop\my\lowcode\quark-h5-master\node_modules_node-gyp@3.8.0@node-gyp\lib\configure.js:509:16)
gyp ERR! stack     at callback (C:\Users\dell\Desktop\my\lowcode\quark-h5-master\node_modules_graceful-fs@4.2.10@graceful-fs\polyfills.js:306:20)
gyp ERR! stack     at FSReqCallback.oncomplete (node:fs:198:21)
gyp ERR! System Windows_NT 10.0.22000
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\dell\Desktop\my\lowcode\quark-h5-master\node_modules\_node-gyp@3.8.0@node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\Users\dell\Desktop\my\lowcode\quark-h5-master\node_modules_node-sass@4.14.1@node-sass
gyp ERR! node -v v16.13.1
gyp ERR! node-gyp -v v3.8.0
 
推荐文章
健身的小笼包  ·  @EnableScheduling加在什么类上 - CSDN文库
9 月前
潇洒的硬币  ·  MySQL关于日期为零值的处理 - 掘金
2 年前
不敢表白的豆浆  ·  spark submit脚本指定传递给main方法的参数 - 简书
2 年前
悲伤的橙子  ·  还在为玩不了ChatGPT苦恼?这十几个开源平替也能体验智能对话 | 机器之心
2 年前
今天看啥   ·   Py中国   ·   codingpro   ·   小百科   ·   link之家   ·   卧龙AI搜索
删除内容请联系邮箱 2879853325@qq.com
Code - 代码工具平台
© 2024 ~ 沪ICP备11025650号