How to install on localhost

I’m working on windows 10.How to install discourse on localhost?

I think I need to use yarn,but there are many errors…

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] Resolving packages...
[2/4] Fetching packages...
[error] Couldn't find match for "1b10552510a1ec13a3d30d46281dc268553ad157" in "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" for "https://github.com/highlightjs/highlight.js".
[info] Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I’m in China and I can’t visit cloud.digitalocean.com.Any other server?

Do you want a production website for other people to use or something locally on your machine for you to test and develop code?

I only want to try it on localhost(like: http://localhost:3000).

Got it. Follow this guide here: Beginners Guide to Install Discourse on Windows 10 for Development

إعجابَين (2)

after bundle install it’s not responding.

bundle install is going to download several packages from servers outside the GFW. That will take a long time. Last time I tried from inside it took at least two hours.

إعجابَين (2)

should I press enter?

You should press [ENTER] when you are done testing.

إعجاب واحد (1)

Thanks for your answer!

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