![](/img/trans.png)
[英]after installing node version 16.16.0 in windows 11 it is showing error in npm --version command
[英]NPM command interupted by Windows displaying version
如果您想自定義命令提示符,您可以編輯環境變量或在命令行中使用set prompt
,在命令行help prompt
中鍵入此命令,它將顯示此
Changes the cmd.exe command prompt.
PROMPT [text]
text Specifies a new command prompt.
Prompt can be made up of normal characters and the following special codes:
$A & (Ampersand)
$B | (pipe)
$C ( (Left parenthesis)
$D Current date
$E Escape code (ASCII code 27)
$F ) (Right parenthesis)
$G > (greater-than sign)
$H Backspace (erases previous character)
$L < (less-than sign)
$N Current drive
$P Current drive and path
$Q = (equal sign)
$S (space)
$T Current time
$V Windows version number
$_ Carriage return and linefeed
$$ $ (dollar sign)
If Command Extensions are enabled, the PROMPT command supports
the following additional formatting characters:
$+ zero or more plus sign (+) characters depending upon the
depth of the PUSHD directory stack, one character for each
level pushed.
$M Displays the remote name associated with the current drive
letter or the empty string if the current drive is not a network
drive.
在您的情況下,我建議使用此命令set PROMPT=$P$_$G
。 嘗試不同的提示,選擇最適合您的提示。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.