如何在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中使用其他節點模塊。爲此,所描述的步驟是必要的。
有誰知道如何解決這個問題?
導出不是一個Windows命令。要在當前cmd實例中存儲環境變量,請使用'set',永久存儲'setx.exe' – LotPings