当前位置:网站首页>npm install报gyp info it worked if it ends with ok
npm install报gyp info it worked if it ends with ok
2022-08-02 16:37:00 【m0_67393157】
npm install报gyp info it worked if it ends with ok
今天启动别人的项目,在 npm i 安装依赖项时出现报错信息
npm WARN deprecated [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please
upgrade asap.
npm WARN deprecated [email protected]: deprecated
npm WARN deprecated [email protected]: [email protected]<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:UsersadminDesktopue2-elm-masterue2-elm-master
ode_modules
ode-sass
npm ERR! command failed
npm ERR! command C:Windowssystem32cmd.exe /d /s /c node scripts/build.js
npm ERR! Building: C:Program Files
odejs
ode.exe C:UsersadminDesktopue2-elm-masterue2-elm-master
ode_modules
ode-gypin
ode-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
odejs
ode.exe’,
npm ERR! gyp verb cli ‘C:\Users\admin\Desktop\vue2-elm-master\vue2-elm-master
ode_modules
ode-gyp\bin
ode-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 [email protected]
npm ERR! gyp info using [email protected] | 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:UsersadminDesktopue2-elm-masterue2-elm-master
ode_moduleswhichwhich.js:13:12)
npm ERR! gyp verb which
failed at F (C:UsersadminDesktopue2-elm-masterue2-elm-master
ode_moduleswhichwhich.js:68:19)
npm ERR! gyp verb which
failed at E (C:UsersadminDesktopue2-elm-masterue2-elm-master
ode_moduleswhichwhich.js:80:29)
npm ERR! gyp verb which
failed at C:UsersadminDesktopue2-elm-masterue2-elm-master
ode_moduleswhichwhich.js:89:16
npm ERR! gyp verb which
failed at C:UsersadminDesktopue2-elm-masterue2-elm-master
ode_modulesisexeindex.js:42:5
npm ERR! gyp verb which
failed at C:UsersadminDesktopue2-elm-masterue2-elm-master
ode_modulesisexewindows.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:UsersadminDesktopue2-elm-masterue2-elm-master
ode_moduleswhichwhich.js:13:12)
npm ERR! gyp verb which
failed at F (C:UsersadminDesktopue2-elm-masterue2-elm-master
ode_moduleswhichwhich.js:68:19)
npm ERR! gyp verb which
failed at E (C:UsersadminDesktopue2-elm-masterue2-elm-master
ode_moduleswhichwhich.js:80:29)
npm ERR! gyp verb which
failed at C:UsersadminDesktopue2-elm-masterue2-elm-master
ode_moduleswhichwhich.js:89:16
npm ERR! gyp verb which
failed at C:UsersadminDesktopue2-elm-masterue2-elm-master
ode_modulesisexeindex.js:42:5
npm ERR! gyp verb which
failed at C:UsersadminDesktopue2-elm-masterue2-elm-master
ode_modulesisexewindows.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:系统安装目录pythonpython.EXE
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Command failed: D:系统安装目录pythonpython.EXE -c import sys; print “%s.%s.%s” % sys.version_info[:3];
npm ERR! gyp ERR! stack File “”, 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
odejs
ode.exe” “C:\Users\admin\Desktop\vue2-elm-master\vue2-elm-master
ode_modules
ode-gyp\bin
ode-gyp.js” “rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” “–libsass_library=”
npm ERR! gyp ERR! cwd C:UsersadminDesktopue2-elm-masterue2-elm-master
ode_modules
ode-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: 1
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersadminAppDataLocal
pm-cache_logs2022-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
引用:
https://zhuanlan.zhihu.com/p/166175735
https://www.jianshu.com/p/e98c5a9525d3
https://www.jianshu.com/p/e98c5a9525d3
https://blog.csdn.net/qcc0716/article/details/115463828utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2aggregatepagefirst_rank_ecpm_v1~rank_v31_ecpm-1-115463828.pc_agg_new_rank&utm_term=npm+err%21+gyp+info+it+worked+if+it+ends+with+ok&spm=1000.2123.3001.4430
https://blog.csdn.net/qq_19249021/article/details/122414017utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2aggregatepagefirst_rank_ecpm_v1~rank_v31_ecpm-3-122414017.pc_agg_new_rank&utm_term=npm+err%21+gyp+info+it+worked+if+it+ends+with+ok&spm=1000.2123.3001.4430
本文比较繁琐,如有更简单的方法可以告诉我链接!
先自我介绍一下,小编13年上师交大毕业,曾经在小公司待过,去过华为OPPO等大厂,18年进入阿里,直到现在。深知大多数初中级java工程师,想要升技能,往往是需要自己摸索成长或是报班学习,但对于培训机构动则近万元的学费,着实压力不小。自己不成体系的自学效率很低又漫长,而且容易碰到天花板技术停止不前。因此我收集了一份《java开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
猜你喜欢
解析并执行 shell 命令
每日练习------定义一个N*N二维数组,从键盘上输入值,找出每行中最大值组成一个一维数组并输出;
[300+ selected big factory interview questions continue to share] Big data operation and maintenance sharp knife interview questions column (10)
Oracle 11 g rac finished patch, dbca new patches of SQL database also needs to perform?
es6 map使用场景
关于我用iVX沉浸式体验了一把0代码项目创建
navicat创建连接 2002-can‘t connect to server on localhost(10061)且mysql服务已启动问题
Nacos配置中心用法详细介绍
Redis进阶之路:深度解析Redis单线程架构,图文并茂不能再清晰了
Nacos配置中心工作原理(超简单)
随机推荐
CWE4.8:2022年危害最大的25种软件安全问题
2.NVIDIA Deepstream开发指南中文版--自述文件
【genius_platform软件平台开发】第七十五讲:YUY2转RGB24实现源码
【Redis】连接报错:Could not connect to Redis at 127.0.0.1:6379: Connection refused
Flink SQL搭建实时数仓DWD层
一文搞懂│php 中的 DI 依赖注入
Informatica旗下PowerCenter的元数据库解析
工信部电子五所张志强:中国数据库行业发展趋势分析
Arduino 硬件编程语言基础学习入门
29. 两数相除
几种常见的跨域解决方法
红蓝对抗经验分享:CS免杀姿势
Locking and concurrency control (a)
js商品总价格、最高价格商品、排除重复商品[初版]
更舒适更安全更时尚 凯翼2023款炫界正式上市
技术分享| 融合调度系统中的电子围栏功能说明
软件技术功能开发思路
蔚来杯2022牛客暑期多校训练营5 ABCDFGHK
关于我用iVX沉浸式体验了一把0代码项目创建
排查生产环境:MySQLTransactionRollbackException数据库死锁