本文主要介绍安装node-sass时出错(无法安装nodesass),下面一起看看安装node-sass时出错(无法安装nodesass)相关资讯。
运行项目下的npm install,发现node-sass安装一直不成功,报了一堆错误。
gyp动词检查python检查python可执行文件 python2 在pathgyp动词` which ` fail:而非found: python 2 gyp动词` which ` failed at getnotfounderror(e: \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ which \ js: 13 : 12)gyp动词` which ` failed at f(e: \ macyideaproject \ github _ project \ vue-admin-elementsexe \ index . js: 42 : 5 gyp动词` which ` failed at e: \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ isexe \ windows . js: 36 : 5 gyp动词` which ` failed at fsreq callback . on complete(fs . js: 183 :89:16gyp动词` which ` failed at e: \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ is exe \ index . js: 5 gyp动词` which ` failed at e: \ macyideaproject \ github _ project \ vue-admin-element ui-master;enoent gyp动词检查python检查python可执行文件 python 在pathgyp动词` which ` fail:而非found: pythongyp动词` which ` failed at getnotfounderror(e: \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ which \ js: 13 : 12)gyp动词` which ` failed at f(e: \ macyideaproject \ github _ project \ vue-admin-elementhich `在e(e: \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ which \ which . js: 80 : 29)处失败o1-@ . com \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ which \ which . js: 68 : 19)gyp动词` which `在e处失败(e: \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ which \ which . js: 80 echo 1-@ ;enoent gyp动词&; which` failed } gyp动词找不到 python 。检查python launchergyp谓词是否可以找不到 python 。猜测locationgyp动词确保文件: c: \ python 27 \ python . :罐头公司。;找不到python可执行文件 python ,可以设置python env变量. gyp err!堆栈在python finder . failnopython(e: \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ node-gyp \ lib \ configure . js: 483 : 19)gyp err!堆栈在python finder . anonymous(e: \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ node-gyp \ lib \ configure . js: 508 : 16)gyp err!堆栈在e: \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ graceful-fs \ poly fills . js: 284 : 29 gyp err!堆栈在fsreqcallback . on complete(fs . js: 183 : 21)gyp err!系统windows_nt 10.0.22000gyp err!指挥与控制d: \ \ macyd:\\macyideaproject \ \ github _ project \ \ vue-admin-element ui-master \ \ node _ modules \ \ node-gyp \ \ bin \ \ node-gyp . js 重建 详细 -libsass _ ext = -libsass _ cflags = -libsass _ ld flags = -libsass _ library = 吉普呃!cwd e: \ macyideaproject \ github _ project \ vue-admin-element ui-master \ node _ modules \ node-sassgyp err!node -v v14.15.1gyp err!node-gyp-v 3 . 6 . 2 gyp err!not okbuild失败,出现错误cod: 1 npm warn可选跳过可选dependency: fsevents@^1.0.0(node _ modules \ choki dar \ node _ modules \ f events): npm warn not sup跳过可选dependency: fs:不支持的平台想要{;os;echo1-@.co m 达尔文和, arch : 任何 } (curr: { os : win32 , arch : x64 })npm err!代码elifecycl: ` node scripts/build . js ` npm :npm err中找到!c: \ users \ 27928 \ appdata \ roaming \ npm-cache \ _ logs \ 2022-05-19t 04 _ 22 _ 20 _ 960 z-debug . log网上查了一下资料说是国内网络环境原因下载失败。因此,
.comnpm.taobao.org/mirrors/node-sass/tag: npm inode-sass-sass _ binary _ site = echo 0-@
可以镜像一下。
了解更多安装node-sass时出错(无法安装nodesass)相关内容请关注本站点。