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

windows下使用node.js建立環境後,頁面跳轉有錯誤 #689

Open
afan0918 opened this issue Jun 12, 2022 · 4 comments
Open

windows下使用node.js建立環境後,頁面跳轉有錯誤 #689

afan0918 opened this issue Jun 12, 2022 · 4 comments
Labels

Comments

@afan0918
Copy link
Contributor

預期點擊連結後,跳轉至

http://localhost:3000/about/

實際行為則是跳轉到

http://localhost:3000/about

而導致無法成功跳轉,所有連結幾乎都有以下問題。

@irvin irvin added the devenv label Jun 12, 2022
@afan0918
Copy link
Contributor Author

原因是因為未安裝php所導致,安裝後解決。

@RJHsiao
Copy link
Member

RJHsiao commented Jun 12, 2022

這樣 README 應該要修正?
目前 README 中 Development 底下沒提到有相依 PHP
只有在 Static Pages Local Installation 下面有列 PHP,內容為:

PHP is only required for GitHub Webhook and Online Update mechanisms to work. Only tested with PHP 7.1, with cURL extension required to call GitHub API for hook source range verification.

@mingtsay
Copy link
Contributor

怪了,我記得不用裝 PHP 才對,我這幾天 dig in 找看看是什麼造成的

@mingtsay
Copy link
Contributor

目前實測乾淨環境 debian 裝 node v18.3.0 跟 npm v8.11.0 沒這個問題
可能是 cache 沒有清乾淨或其他問題(需要更多資訊)

另外我送了 #696 新增 docker-compose.yml 檔案
如果真的用 Node.JS 不能正常跑的話,還可以用 docker 解決

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

No branches or pull requests

4 participants