如何在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