【问题标题】:NW js Use Native Node Modules Commands on Windows Not WorkingNW js 在 Windows 上使用本机节点模块命令不起作用
【发布时间】:2017-09-23 00:05:28
【问题描述】:

如何在 Windows Powershell 中运行“导出”命令?

如前所述 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 eines ausführbaren Programms erkannt。 Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und wieder 霍尔恩西登沃甘。 贝泽勒:1 蔡臣:7 + 导出

最后,我只想在 NW js 中使用其他节点模块。为此,所描述的步骤是必要的。

有人知道怎么解决吗?

【问题讨论】:

  • 导出不是 windows 命令。在当前 cmd 实例中存储环境变量使用set,永久存储使用setx.exe

标签: javascript powershell command export


【解决方案1】:

好的。如我所见,我今天工作时间太长了。所以我没有在列表中看到特殊的 windows 命令。

答案就像上面提到的 LotPins:

设置 npm_config_target=0.18.5

而不是

导出 npm_config_target=0.18.5

对不起。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-10-05
    • 2017-10-29
    • 2019-08-13
    • 2017-01-12
    • 2014-03-12
    • 2023-02-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多