Windows XP ラップトップでローカルの BrowserQuest サーバーを実行しようとしていますが、いくつか問題があります。こちらの BrowserQuest ブログ投稿をご覧ください: http://hacks.mozilla.org/2012/03/browserquest/
これまでのところ、BrowserQuest ソースコードを github からダウンロードし、npm install -d を使用して、BrowserQuest に必要な node.js ライブラリ (アンダースコア、ログ、バイソン、websocket など) と共に node.js をインストールしました。
次に、コマンド プロンプトに移動し、node server/ js /main.js を使用します。結果は次のとおりです。
クライアント フォルダに移動し、Google Chrome で index.html を開き、名前を入力して [再生] ボタンをクリックしましたが、読み込み中のシンボル (spinner.gif) で動かなくなりました。
そこで、Google Chrome のコンソールに移動すると、次のように表示されます。
App initialized. log.js:14
XMLHttpRequest cannot load file:///C:/Test/client/config/config_build.json. Cross origin requests are only supported for HTTP.
Uncaught SyntaxError: Unexpected end of input index.html:1
Uncaught Error: NETWORK_ERR: XMLHttpRequest Exception 101 text.js:6
181waiting... log.js:22
45waiting... log.js:22
Uncaught Error: Load timeout for modules: text!../config/config_build.json
http://requirejs.org/docs/errors.html#timeout require-jquery.js:80
634waiting... log.js:22