我使用 Sublime Text 3 编辑器中的打包控件下载了 Nodejs 插件。 我无法配置原始设置文件,无需设置不同的javascript构建系统。
https://github.com/tanepiper/SublimeText-Nodejs
{
// save before running commands
"save_first": true,
// if present, use this command instead of plain "node"
// e.g. "/usr/bin/node" or "C:\bin\node.exe"
"node_command": "C:\\Program Files\\nodejs\\node.exe",
// Same for NPM command
"npm_command": "C:\\Users\\fraballi\\AppData\\Roaming\\npm",
// as 'NODE_PATH' environment variable for node runtime
"node_path": false,
"expert_mode": false,
"ouput_to_new_tab": false
}
[Finished in 0.1s with exit code 1]
[cmd: ['taskkill /F /IM node.exe & node', 'C:\Users\..\the\path\to\file\js']]
[dir: C:\Users\..\the\path\to\file\js]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\idmu\common;C:\Program Files (x86)\GTK2-Runtime\bin;c:\xampp\php;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\ProgramData\ComposerSetup\bin;C:\Program Files\Java\jre1.8.0_25\bin;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\nodejs\;\exercism;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\Program Files (x86)\GitExtensions\;C:\Users\fraballi\AppData\Roaming\npm]