2017-04-09 8 views
0

私はWindows上で流星アプリをテストし、より単純なnode.jsアプリケーションでビルドする必要があります。Node.js Windowsで起動

node main.js 

しかし言うエラー:Windows上で

は、私はこの使用にコマンドを実行する必要があるサーバ環境でoptions.rootUrlまたは設定ROOT_URLを渡す必要があります。

私は試してみてください。

ROOT_URL: http://127.0.0.1 node main.js 

しかし、それは言う:

ROOT_URL= : The term 'ROOT_URL=' is not recognized as the name of a cmdlet, function, script file, or operable 
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. 

答えて

0

は試してみてください

set ROOT_URL=http://127.0.0.1 
node main.js 
関連する問題