@simonyea/holysheep-cli 1.1.8 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/setup.js +3 -3
package/package.json
CHANGED
package/src/commands/setup.js
CHANGED
|
@@ -240,11 +240,11 @@ async function setup(options) {
|
|
|
240
240
|
// 显示启动命令
|
|
241
241
|
if (r.tool.launchCmd) {
|
|
242
242
|
if (r.tool._winJustInstalled) {
|
|
243
|
-
// Windows 刚安装:PATH
|
|
244
|
-
console.log(` ${chalk.yellow('▶ Windows:新开一个终端后运行:')} ${chalk.cyan.bold(r.tool.launchCmd)}`)
|
|
243
|
+
// Windows 刚安装:PATH 未刷新,统一用 npx 运行
|
|
245
244
|
const cmdBin = r.tool.launchCmd.split(' ')[0]
|
|
246
245
|
const cmdArgs = r.tool.launchCmd.split(' ').slice(1).join(' ')
|
|
247
|
-
|
|
246
|
+
const npxCmd = 'npx ' + cmdBin + (cmdArgs ? ' ' + cmdArgs : '')
|
|
247
|
+
console.log(` ${chalk.gray('▶ 启动命令:')} ${chalk.cyan.bold(npxCmd)}`)
|
|
248
248
|
if (r.tool.launchNote) console.log(` ${chalk.gray(' ' + r.tool.launchNote)}`)
|
|
249
249
|
} else {
|
|
250
250
|
console.log(` ${chalk.gray('▶ 启动命令:')} ${chalk.cyan.bold(r.tool.launchCmd)}`)
|