如何在本地主机上安装

我正在 Windows 10 上工作。如何在本地主机上安装 Discourse?

我想我需要使用 yarn,但出现了很多错误…

D:\discourse>yarn
yarn install v1.22.0
$ node -e "if(process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('NPM is not supported, please use Yarn instead. ')"
[1/4] 解析包...
[2/4] 获取包...
[error] 在 "refs/heads/9-17-stable,refs/heads/9-18-stable,refs/heads/cli,refs/heads/css_consistency,refs/heads/egor-rogov-tsql,refs/heads/javascript/add-jsdoc,refs/heads/jsdom,refs/heads/master,refs/heads/v10-temp,refs/heads/yyyc514-patch-1,refs/tags/10.0.0-beta.0,refs/tags/5.10,refs/tags/5.11,refs/tags/5.12,refs/tags/5.13,refs/tags/5.14,refs/tags/5.3,refs/tags/5.4,refs/tags/5.5,refs/tags/5.6,refs/tags/5.7,refs/tags/5.8,refs/tags/5.9,refs/tags/6.0,refs/tags/6.0.1,refs/tags/6.0beta,refs/tags/6.1,refs/tags/6.2,refs/tags/7.0,refs/tags/7.0.1,refs/tags/7.1,refs/tags/7.2,refs/tags/7.3,refs/tags/7.4,refs/tags/7.5,refs/tags/8.0,refs/tags/8.0beta,refs/tags/8.1,refs/tags/8.2,refs/tags/8.3,refs/tags/8.4,refs/tags/8.5,refs/tags/8.6,refs/tags/8.7,refs/tags/8.8.0,refs/tags/8.9.0,refs/tags/8.9.1,refs/tags/9.0.0,refs/tags/9.1.0,refs/tags/9.10.0,refs/tags/9.11.0,refs/tags/9.12.0,refs/tags/9.13.0,refs/tags/9.13.1,refs/tags/9.14.0,refs/tags/9.14.1,refs/tags/9.14.2,refs/tags/9.15.0,refs/tags/9.15.1,refs/tags/9.15.10,refs/tags/9.15.2,refs/tags/9.15.3,refs/tags/9.15.4,refs/tags/9.15.5,refs/tags/9.15.6,refs/tags/9.15.7,refs/tags/9.15.8,refs/tags/9.15.9,refs/tags/9.16.0,refs/tags/9.16.1,refs/tags/9.16.2,refs/tags/9.17.0,refs/tags/9.17.1,refs/tags/9.18.0,refs/tags/9.18.1,refs/tags/9.2.0,refs/tags/9.3.0,refs/tags/9.4.0,refs/tags/9.5.0,refs/tags/9.6.0,refs/tags/9.7.0,refs/tags/9.8.0,refs/tags/9.9.0" 中找不到 "1b10552510a1ec13a3d30d46281dc268553ad157" 的匹配项,目标为 "https://github.com/highlightjs/highlight.js"。
[info] 请访问 https://yarnpkg.com/en/docs/cli/install 了解此命令的相关文档。

我在中国,无法访问 cloud.digitalocean.com。有其他服务器吗?

您是需要一个供他人使用的生产环境网站,还是仅需在本地机器上用于测试和开发代码?

我只想在本机(例如:http://localhost:3000)上试用。

明白了。请按照这里的指南操作:Install Discourse on Windows for development

2 个赞

执行 bundle install 后无响应。

bundle install 将会从防火墙外的服务器下载多个软件包。这将需要很长时间。上次我在防火墙内尝试时,至少花费了两个小时。

2 个赞

我应该按回车键吗?

测试完成后,请按 [ENTER] 键。

1 个赞

感谢您的回答!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.