Skip to content
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

部署 #1

Open
msailim opened this issue Jan 4, 2020 · 7 comments
Open

部署 #1

msailim opened this issue Jan 4, 2020 · 7 comments

Comments

@msailim
Copy link

msailim commented Jan 4, 2020

看了下老哥的旅行地图,感觉不错,想求教一下该源码的使用办法,本人小白,求教!

@yc111
Copy link
Owner

yc111 commented Mar 23, 2020

Fork 本项目后然后再clone到本地修改,
进入项目目录执行npm i安装依赖,
执行npm start,浏览器打开http://localhost:5000/预览效果,
修改src/config/place.config.js,就可以定制你的足迹地图了。

如有疑问请继续给我提issue,我会在看到后尽快回复。
PS:最近我会重构一版,让配置更方便。

@arthurfsy2
Copy link

arthurfsy2 commented Sep 9, 2023

请问npm install安装依赖,报错
本人用的nodejs是18.15
npm版本是9.6.3、
python版本是3.11.3

@LiteraturePro
Copy link

@arthurfsy2 python版本是3.11.3 ,应该是这个引起的,用python2的环境

@KurococLiu
Copy link

@arthurfsy2python版本是3.11.3 ,应该是这个引起的,用python2的环境

使用npm及pnpm均部署失败
nodejs:20.12.1
npm:10.5.1
python2:2.7.18
python:3.12.1

@LiteraturePro
Copy link

@arthurfsy2python版本是3.11.3 ,应该是这个引起的,用python2的环境

使用npm及pnpm均部署失败 nodejs:20.12.1 npm:10.5.1 python2:2.7.18 python:3.12.1

暂时没找到问题,我每次调试的时候,就是用cloudflare的pages和https://vercel.com/部署后的页面来看效果,这个两个工具可以部署,你看下可不可以曲线救国下

@KurococLiu
Copy link

@arthurfsy2python版本是3.11.3 ,应该是这个引起的,用python2的环境

使用npm及pnpm均部署失败 nodejs:20.12.1 npm:10.5.1 python2:2.7.18 python:3.12.1

暂时没找到问题,我每次调试的时候,就是用cloudflare的pages和https://vercel.com/部署后的页面来看效果,这个两个工具可以部署,你看下可不可以曲线救国下

Vercel报错,信息如下:

npm ERR! code CERT_HAS_EXPIRED

15:53:18.255 | npm ERR! errno CERT_HAS_EXPIRED
15:53:18.256 | npm ERR! request to https://registry.npm.taobao.org/zrender/download/zrender-4.1.0.tgz?cache=0&sync_timestamp=1567175820516&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fzrender%2Fdownload%2Fzrender-4.1.0.tgz failed, reason: certificate has expired
15:53:18.270 |  
15:53:18.270 | npm ERR! A complete log of this run can be found in: /vercel/.npm/_logs/2024-04-10T07_51_47_453Z-debug-0.log
15:53:18.295 | Error: Command "npm install" exited with 1

@LiteraturePro
Copy link

@arthurfsy2python版本是3.11.3 ,应该是这个引起的,用python2的环境

使用npm及pnpm均部署失败 nodejs:20.12.1 npm:10.5.1 python2:2.7.18 python:3.12.1

暂时没找到问题,我每次调试的时候,就是用cloudflare的pages和https://vercel.com/部署后的页面来看效果,这个两个工具可以部署,你看下可不可以曲线救国下

Vercel报错,信息如下:

npm ERR! code CERT_HAS_EXPIRED

15:53:18.255 | npm ERR! errno CERT_HAS_EXPIRED 15:53:18.256 | npm ERR! request to https://registry.npm.taobao.org/zrender/download/zrender-4.1.0.tgz?cache=0&sync_timestamp=1567175820516&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fzrender%2Fdownload%2Fzrender-4.1.0.tgz failed, reason: certificate has expired 15:53:18.270 |   15:53:18.270 | npm ERR! A complete log of this run can be found in: /vercel/.npm/_logs/2024-04-10T07_51_47_453Z-debug-0.log 15:53:18.295 | Error: Command "npm install" exited with 1

上面的问题不就是镜像源的问题吗,把package-lock.json整个文件删除,上面的问题就没了,

如果Vercel还报错,应该是会发现是package.json中的node-sass这个包装不上,其他包装的上,需要搞定安装node-sass,我拿Codespaces怎么调试都搞不好。我也不是搞这行的,作者应该也没时间看,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants