2017-09-01 27 views
-1

VS代碼版本1.15.1, 節點7.4.0 平均的這個好tutorial,滾動至底部這個MEAN教程的URI?

測試 - 創建一些項目

冉1和2,無問題。 基於在終端屏幕上的在mLab.com hint,跑3與URI:

節點填充 「的mongodb:// ImDbUser:[email protected]:12345/MyCollection的」

通過

if (!userArgs[0].startsWith('mongodb://')) { 
    console.log('ERROR: You need to specify a valid mongodb URL as the first argument'); 
    return 
} 

確認console.log("[0]==" + userArgs[0]);返回URI拒絕。怎麼了?

回答

0

看來你並不需要把報價各地URI,嘗試:

node populate mongodb://ImDbUser:[email protected]:12345/myCollection 
+0

沒有嘗試,一樣的。你有差異結果嗎? – Jeb50

+0

突然有效。謝謝。 – Jeb50