2017-04-09 38 views
0

我需要在WINDOWS上測試mi流星應用程序,並在簡單的node.js應用程序上構建它。Node.js從窗口開始

在Windows上,我需要運行這樣的一個使用命令:

node main.js 

但說錯誤:必須通過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