-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm install 模板报错 #660
Comments
npm ERR! code 1 同样的问题,会是因为python版本的问题么? |
可以安装python2.7 然后npm config一下python的版本为python2.7 但是也会报别的错 |
刚刚把淘宝源的配置和python的配置都删除了又试了一下就可以了 可能需要直接通过npm自带的源去install才行 |
python@3.9报这个,2.7会爆其他错误但是也包含 原以为是node-gyp问题,经过一天的折腾,发现并没有什么卵用,排除 然后在国外论坛看到有人说是canvas已知bug,原因好像是因为缺少lib,尝试无果 最终解决方案: |
我气死了,折腾了几天,按照你这个方法删除了淘宝的源另外加个代理就好了,为啥??? |
心态很崩,尝试了各种方法,结果看到你这个立马就去切换了一下源,成了 |
遇到同样的问题,因为镜像源的问题,出错时使用的是taobao的mirror,换成原镜像源install成功,成功运行。 |
// 下载完后,npm i 报错, 配置了python 环境 并把镜像源切换成了npm 还是报如下错误 `npm ERR! code 1 npm ERR! A complete log of this run can be found in: |
想系统学习使用可以私聊我
wx是xpyzwm
如果只是问答案 网络上有很多
…---原始邮件---
发件人: ***@***.***>
发送时间: 2021年7月31日(周六) 下午5:57
收件人: ***@***.***>;
抄送: ***@***.***>;
主题: Re: [PanJiaChen/vue-admin-template] npm install 模板报错 (#660)
更换源也解决不了怎么办呀?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
npm ERR! code 1 npm ERR! A complete log of this run can be found in: 有没有什么好的解决办法????? |
你这个报错是路径里带空格的问题 |
要命啊,我也遇到了 |
npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to
the actual version of core-js@3.
npm ERR! code 1
npm ERR! path F:\Demo\ZZT\ZZTABP\vue-admin-template\node_modules\canvas
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@3.8.0
npm ERR! gyp info using node@15.3.0 | win32 | x64
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Command failed: C:\Users\zzt\AppData\Local\Programs\Python\Python39\python.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:309:12)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:376:20)
npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1055:16)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:288:5)
npm ERR! gyp ERR! System Windows_NT 10.0.18363
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "F:\Demo\ZZT\ZZTABP\vue-admin-template\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd F:\Demo\ZZT\ZZTABP\vue-admin-template\node_modules\canvas
npm ERR! gyp ERR! node -v v15.3.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
The text was updated successfully, but these errors were encountered: