yihong0618 / running_page

Make your own running home page
https://running-page.vercel.app
MIT License
3.4k stars 977 forks source link

pnpm install 提示错误 #636

Closed gavenwan closed 3 months ago

gavenwan commented 3 months ago

在部署的时候第一步pip install 没有报错,第二步 nom install -g 这里会 提示报错,分解这条命令,实际是最后一句 pnpm install 报错,提示 this project is configured by yarn

yihong0618 commented 3 months ago

yarn install

yihong0618 commented 3 months ago

我改下 readme

yihong0618 commented 3 months ago

这个该怎么改好一些。 改成 yarn 的原因是 vercel @orionna319

gavenwan commented 3 months ago

我也尝试了yarn install,提示 fatal:unable to access "https://GitHub.com/tachyons-css/achyons-sass.git",,尝试多次也是如此,手动打开上述地址,是404的

gavenwan commented 3 months ago

手动忽略错误,继续yarn run build ,会提示vite不是内部程序; 如果用pnpm develop 会提示,this project is configured by yarn

gavenwan commented 3 months ago

pack里去掉tachyons-sass,然后yarn run build ,在文件夹里手动添加css后,成功build运行

yihong0618 commented 3 months ago

我今晚看看

yihong0618 commented 3 months ago

谢谢反馈

orionna319 commented 3 months ago

有ci错误链接地址吗,我本地yarn install && yarn build,都是成功执行的。

image
orionna319 commented 3 months ago

是不是同步下最新的代码就好了

yihong0618 commented 3 months ago

是不是同步下最新的代码就好了

我更新了下代码,https://github.com/yihong0618/running_page/pull/632 这个是因为 vercel 的问题。不知道是不是这个导致的

gavenwan commented 3 months ago

可能是,我手动改了package解决了问题就没有截图了。有空时我再试试重新下载最新包build一下。目前还在解决keep数据没能把我iphone 健身上的跑步同步完整的问题。

yihong0618 commented 3 months ago

可能是,我手动改了package解决了问题就没有截图了。有空时我再试试重新下载最新包build一下。目前还在解决keep数据没能把我iphone 健身上的跑步同步完整的问题。

在issue里搜索,keep默认只有跑步。

tianheg commented 3 months ago

image

其实主要问题在于 tachyons 这个样式库,在 package.json 中不是通过版本号安装的,所以在 Vercel 上找不到。把 tachyons 相关代码删掉就行。

"tachyons-sass": "git+https://github.com/tachyons-css/tachyons-sass.git",

可以考虑换个样式库,比如 tailwind,但这是个大工程,短期内不太容易做到

yihong0618 commented 3 months ago

image

其实主要问题在于 tachyons 这个样式库,在 package.json 中不是通过版本号安装的,所以在 Vercel 上找不到。把 tachyons 相关代码删掉就行。

"tachyons-sass": "git+https://github.com/tachyons-css/tachyons-sass.git",

可以考虑换个样式库,比如 tailwind,但这是个大工程,短期内不太容易做到

我们先删代码吧,有兴趣来个 PR 么?

tianheg commented 3 months ago

我们先删代码吧,有兴趣来个 PR 么?

因为很多 CSS 样式是基于 tachyons 的,所以只删除 tachyons 会导致页面没有样式,就像下面这样 :) image

需要重写样式代码才能完成这个工作

yihong0618 commented 3 months ago

我们先删代码吧,有兴趣来个 PR 么?

因为很多 CSS 样式是基于 tachyons 的,所以只删除 tachyons 会导致页面没有样式,就像下面这样 :) image

需要重写样式代码才能完成这个工作

OK 我找找有 fork 没

yihong0618 commented 3 months ago
https://github.com/tachyons-css/tachyons-sass.git

我们可以 fork 一个自己发 npm 对吧?

tianheg commented 3 months ago

可以,这样只需要换这个包就行了

yihong0618 commented 3 months ago

好的。你有兴趣搞一个么?

tianheg commented 3 months ago

好的。你有兴趣搞一个么?

好呀,我现在就可以做

Update:

639

tianheg commented 3 months ago

yihong 哥,还有个问题不太明白。Pnpm 用着不是挺好的吗,怎么就改用 Yarn 了。这个包管理器改来改去的,其实也没必要。

yihong0618 commented 3 months ago

yihong 哥,还有个问题不太明白。Pnpm 用着不是挺好的吗,怎么就改用 Yarn 了。这个包管理器改来改去的,其实也没必要。

因为 vercel 报错。。。它自动用的 yarn

tianheg commented 3 months ago

那现在是用 Yarn 还是 Pnpm 呢,tachyons-sass 的问题解决了,Vercel 部署就没问题了吧,我自己测试过了没有错误 image

yihong0618 commented 3 months ago

那现在是用 Yarn 还是 Pnpm 呢,tachyons-sass 的问题解决了,Vercel 部署就没问题了吧,我自己测试过了没有错误 image

我研究研究能一起用不。。