vue脚手架创建项目报错 ERROR command failed: npm install --loglevel error --legacy-peer-deps

版本信息

nodejs16
window10

报错

在这里插入图片描述在这里插入图片描述

感叹

当时感觉十分疑惑,在网上找了很多帖子说是什么淘宝镜像的问题
要把.vuerc里的是否使用淘宝仓库改为true或者false
在我实践下来完全没有用,包括我也看了一些解决的帖子,其实都是在糊弄人,完全没有在根本上解决问题,甚至令我感到寒心的是,居然没找到有人在有报错之后会去查找相关日志来解决问题!
所以我本这求真的态度一行一行查看报错信息和错误日志

错误翻译:

npm错误!代码1

npm错误!路径C:\Users\Syf200208161018\Desktop\PackingGo\front\u vue\pro\node\u modules\node sass

npm错误!命令失败

npm错误!命令C:\WINDOWS\system32\cmd.exe/d/s/C node scripts/build.js

npm错误!构建:D:\nodejs\node.exe C:\Users\Syf200208161018\Desktop\packingo\front\u vue\pro\node\u modules\node gyp\bin\node-gyp.js rebuild--verbose--libsass\u ext=--libsass\u cflags=--libsass\u ldflags=--libsass\u库=

npm错误!gyp信息如果以ok结尾,它就起作用了

npm错误!动词cli[

npm ERR!gyp动词cli'D:\\nodejs\\node.exe',

npm ERR!gyp动词cli'C:\\Users\\Syf200208161018\\Desktop\\PackingGo\\front\u vue\\pro\\node\u modules\\node gyp\\bin\\node gyp.js',

npm ERR!gyp动词cli“重建”,

npm ERR!gyp动词cli'--verbose',

npm ERR!gyp动词cli'--libsass_ext=',

npm ERR!gyp动词cli'--libsass_cflags=',

npm ERR!gyp动词cli'--libsass_ldflags=',

npm ERR!gyp动词cli'--libsass_library='1!'

npm ERR!gyp动词cli]

npm错误!gyp信息使用节点[email protected]

npm错误!gyp信息使用[email protected]| win32 | x64

npm错误!gyp谓词命令重新生成[]

npm错误!gyp动词命令clean[]

npm错误!gyp谓词清除删除“build”目录

npm错误!gyp谓词命令配置[]

npm错误!使用disturl下载gyp动词https://oss.npmmirror.com/dist/node

npm错误!gyp谓词检查python检查路径中的python可执行文件“python2”

npm错误!gyp动词`which`失败错误:未找到:python2

npm错误!gyp动词`which`在getNotFoundError时失败(C:\Users\Syf200208161018\Desktop\PackingGo\前台\u vue\pro\node\u modules\which\which.js:13:12)

npm错误!gyp动词'which`在F处失败(C:\Users\Syf200208161018\Desktop\packingo\front\u vue\pro\node\u modules\which\which.js:68:19)

npm错误!gyp动词'which`在E处失败(C:\Users\Syf200208161018\Desktop\packingo\front\u vue\pro\node\u modules\which\which.js:80:29)

npm错误
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值