2017-04-25 60 views
0

如何在Windows Powershell中運行「導出」命令?NW js在Windows上無法使用本地節點模塊命令

http://docs.nwjs.io/en/latest/For%20Users/Advanced/Use%20Native%20Node%20Modules/

提到我已經做了一部分非LTS發佈:

npm install -g nw-gyp 

- >這個工程

但接下來的命令不會:

export npm_config_target=0.18.5 

未找到命令「導出」:

Die Benennung「export」wurde nicht als Name eines Cmdlet,einer Funktion,einer Skriptdatei oder einesausführbarenProgramms erkannt。 ÜberprüfenSie die Schreibweise des Namens,Oder ob der Pfad korrekt ist(sofern enthalten),und wieder holen Sie den Vorgang。 孛Zeile:1賊臣:7 +導出< < < < npm_config_target = 0.18.5 + CategoryInfo:ObjectNotFound:(出口:字符串)[],CommandNotFoundException + FullyQualifiedErrorId:CommandNotFoundException

在結束時,我只想在NW js中使用其他節點模塊。爲此,所描述的步驟是必要的。

有誰知道如何解決這個問題?

+0

導出不是一個Windows命令。要在當前cmd實例中存儲環境變量,請使用'set',永久存儲'setx.exe' – LotPings

回答

0

好的。正如我所看到的,我今天工作太久了。所以我沒有在列表中看到特殊的Windows命令。

答案是像上面提到LotPins:

組npm_config_target = 0.18.5

代替

出口npm_config_target = 0.18.5

對不起這個錯誤。