前端安装项目报错1.gyp info it worked if it ends with ok
npm install报gyp info it worked if it ends with ok
今天启动别人的项目,在 npm i 安装依赖项时出现报错信息
npm WARN deprecated svgo@0.7.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please
upgrade asap.
npm WARN deprecated iscroll@5.2.0: deprecated
npm WARN deprecated core-js@2.6.11: core-js@<3.4 is no longer maintained and not recommended for usage due to the number
of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 1
npm ERR! path C:\Users\admin\Desktop\vue2-elm-master\vue2-elm-master\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node scripts/build.js
npm ERR! Building: C:\Program Files\nodejs\node.exe C:\Users\admin\Desktop\vue2-elm-master\vue2-elm-master\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',
npm ERR! gyp verb cli 'C:\\Users\\admin\\Desktop\\vue2-elm-master\\vue2-elm-master\\node_modules\\node-gyp\\bin\\node-gyp.js',
npm ERR! gyp verb cli 'rebuild',
npm ERR! gyp verb cli '--verbose',
npm ERR! gyp verb cli '--libsass_ext=',
npm ERR! gyp verb cli '--libsass_cflags=',
npm ERR! gyp verb cli '--libsass_ldflags=',
npm ERR! gyp verb cli '--libsass_library='
npm ERR! gyp verb cli ]
npm ERR! gyp info using node-gyp@3.8.0
npm ERR! gyp info using node@16.4.2 | win32 | x64
npm ERR! gyp verb command rebuild []
npm ERR! gyp verb command clean []
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb download using dist-url https://npm.taobao.org/dist
npm ERR! gyp verb check python checking for Python executable "python2" in the PATH
npm ERR! gyp verb `which` failed Error: not found: python2
npm ERR! gyp verb `which` failed at getNotFoundError (C:\Users\admin\Desktop\vue2-elm-master\vue2-elm-master\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\Users\admin\Desktop\vue2-elm-master\vue2-elm-master\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\Users\admin\Desktop\vue2-elm-master\vue2-elm-master\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\Users\admin\Desktop\vue2-elm-master\vue2-elm-master\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\Users\admin\Desktop\vue2-elm-master\vue2-elm-master\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\Users\admin\Desktop\vue2-elm-master\vue2-elm-master\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:195:21)
npm ERR! gyp verb `which` failed python2 Error: not found: python2
npm ERR! gyp verb `which` failed at getNotFoundError (C:\Users\admin\Desktop\vue2-elm-master\vue2-elm-master\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\Users\admin\Desktop\vue2-elm-master\vue2-elm-master\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\Users\admin\Desktop\vue2-elm-master\vue2-elm-master\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\Users\admin\Desktop\vue2-elm-master\vue2-elm-master\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\Users\admin\Desktop\vue2-elm-master\vue2-elm-master\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\Users\admin\Desktop\vue2-elm-master\vue2-elm-master\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:195:21) {npm ERR! gyp verb `which` failed code: 'ENOENT'
npm ERR! gyp verb `which` failed }
npm ERR! gyp verb check python checking for Python executable "python" in the PATH
npm ERR! gyp verb `which` succeeded python D:\系统安装目录\python\python.EXE
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Command failed: D:\系统安装目录\python\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack File "<string>", line 1
npm ERR! gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack ^
npm ERR! gyp ERR! stack SyntaxError: invalid syntax
npm ERR! gyp ERR! stack
npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:397:12)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:394:28)
npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1067:16)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
npm ERR! gyp ERR! System Windows_NT 10.0.19041
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\admin\\Desktop\\vue2-elm-master\\vue2-elm-master\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd C:\Users\admin\Desktop\vue2-elm-master\vue2-elm-master\node_modules\node-sass
npm ERR! gyp ERR! node -v v16.4.2
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin\AppData\Local\npm-cache\_logs\2022-03-01T06_16_54_210Z-debug.log
1.第一步
删除package.json中的node-sass
2.第二步
安装淘宝镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org
检查是否安装成功
cnpm -v
3.第三步
找到项目路径
在终端中输入cnpm install
4.第四步
安装node-sass
cnpm i node-sass
5.第五步
运行项目
cnpm run dev 或者 cnpm run serve
前端安装项目报错1.gyp info it worked if it ends with ok相关推荐
- npm install安装报错 gyp info it worked if it ends with ok
前端vue新项目 npm install安装报错 gyp info it worked if it ends with ok 1.可能原因1:node和node-sass版本冲突, 对应的node和n ...
- Mac安装webpack报错gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1解决
安装webpack ,报错提示 gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ER ...
- 前端开发:Vue项目报错Unknown custom element:XXX - did you register the component correctly…的解决方法丨蓄力计划
导读 Vue项目报错Unknown custom element:XXX - did you register the component correctly-的解决方法. 问题 前段时间在做前端项目 ...
- open with code 报错没有项目_Python开发:解决Ubuntu安装tesserocr报错
tesserocr是Python的一个OCR库, 其中OCR指的是光学字符识别,是指通过扫描字符,然后通过其形状将其翻译成电子文本的过程. tesserocr是tesseract做的一层Python ...
- npm install node-sass的时候报错ERR gyp ERR C++
今天在项目里执行npm i命令的是后报错一大片,搜了很多文章,都没有到点上.突然灵感一闪,可能是电脑上没有c++编译环境的问题. 但是是我在电脑上运行c文件是正常的. 搜到一篇文章里写的情况是这样的: ...
- Mac安装Node-sass报错 warning: loop variable ‘numerator‘ creates a copy from type ‘const std::string
Mac安装Node-sass报错 运行前端项目,npm i 时报错 warning: loop variable 'numerator' creates a copy from type 'const ...
- npm install 报错 gyp info it worked if it ends with ok npm ERR! gyp verb cli [
今天新启动一个项目,在 npm install 安装依赖项时出现报错. ERR! code 1 npm ERR! path C:\Users\Administrator\Desktop\14531\m ...
- npm install 报错 gyp info it worked if it ends with ok npm ERR gyp verb cli [
今天新启动一个项目,在 npm install 安装依赖项时出现报错. ERR! code 1 npm ERR! path C:UsersAdministratorDesktope31mall-adm ...
- pycharm安装pytorch报错 提示系列问题 torch 包找不到因为pip版本低,结果升级了pip从19.3到20.2 4又提示高版不支持torch安装
pycharm安装pytorch报错 提示系列问题 torch 包找不到因为pip版本低,结果升级了pip从19.3到20.2 4又提示高版不支持torch安装 DEPRECATION: The - ...
- Eclipse创建的Maven项目报错Could not calculate build plan: Plugin
Eclipse创建的Maven项目报错Could not calculate build plan: Plugin 2018年05月10日 21:59:25 TIMI-Nian 阅读数:5040 标签 ...
最新文章
- 100% 展示 MySQL 语句执行的神器-Optimizer Trace
- 如何测试网络视频服务器(DVS)
- 2017第八届中国跨境电商峰会暨展览将在11月底召开!
- 智宇科技 ZYARJX-1机械臂智能小车 —— PS2游戏手柄控制程序
- LeetCode OJ - Populating Next Right Pointers in Each Node II
- layui父页面调用子页面的渲染_layUI ajax加载html页面后重新渲染的方法
- 微课|中学生可以这样学Python(5.8.2节):使用切片修改列表
- JavaScript日期有效性检查
- vue如何集成阿里云视频服务组件(aliplayer)视频功能是使用el-dialog 弹出aliplayer播放
- python二元一次方程组用鸡兔同笼的思路来写编程_二元一次方程组应用 —鸡兔同笼...
- html中网站片头制作利器,视频开头特效制作 视频播放时简单的片头制作
- vue中的@click.native.prevent,点击事件加上native.prevent究竟有什么用呢?
- 安工大计算机组成原理实验报告,计算机组成原理实验报告.doc
- WPS文字设置奇偶页眉、下划线的方法步骤
- linux查询服务器域名解析记录
- iOS UITableView 指定组头悬停位置
- ubuntu查看本机ip命令
- linux查询socket资源,TCP的socket资源被耗尽的问题
- python可以自动运行m文件吗_如何运行m文件而不启动matlab
- 模式识别算法之2--感知器(感知机)算法
热门文章
- Ubuntu ssh-keygen远程登录
- pyspark写法总结
- [24]Window PowerShell DSC学习系列---- 如何保护MOF文件里面存储的密码?
- JavaScript网页特效范例目录
- bootstrap 动态横向时间轴_jquery纵向时间轴插件_Bootstrap响应两侧时间轴特效代码Timeline...
- linux uvc 拍照程序,Linux UVC driver
- ubuntu 网卡流量_Ubuntu下使用nload查看网卡实时流量
- 平板电脑安装软件_哪个便签可以横屏?平板电脑横屏便签软件推荐
- python招聘现状-前程无忧 Python 招聘岗位信息爬取和分析
- 念念不忘,必有回响:Powered By Typecho