, поскольку в Cygwin нет npm
, вы явно используете инструмент третьей части. Я предполагаю, что вы используете стандартный CMD в качестве интерпретатора команд, поскольку для Bash у вас будет
$ time ls
bin doc Downloads foo Music Public Videos
Desktop Documents figure3.jpg lftp Pictures Templates Xdefaults
real 0m0.564s
user 0m0.000s
sys 0m0.030s
, а ваш
The system cannot accept the time entered.
Enter the new time:
эквивалентен моему выводу CMD (немецкий)
C:\Users\Marco>time ls
Eingegebene Zeit kann nicht übernommen werden.
Geben Sie die neue Zeit ein:
bash shell
$ type time
time is a shell keyword
from info bash
3.2.2 Pipelines
---------------
A 'pipeline' is a sequence of one or more commands separated by one of the control operators '|' or '|&'.
The format for a pipeline is
[time [-p]] [!] COMMAND1 [ | or |& COMMAND2 ] ...
The output of each command in the pipeline is connected via a pipe to the input of the next command. That is, each command reads the previous command's output. This connection is performed before any redirections specified by the command.
If '|&' is used, COMMAND1's standard error, in addition to its standard output, is connected to COMMAND2's standard input through the pipe; it is shorthand for '2>&1 |'. This implicit redirection of the standard error to the standard output is performed after any redirections specified by the command.
The reserved word 'time' causes timing statistics to be printed for the pipeline once it finishes. The statistics currently consist of elapsed (wall-clock) time and user and system time consumed by the command's execution. The '-p' option changes the output format to that specified by POSIX. When the shell is in POSIX mode (*note Bash POSIX Mode::), it does not recognize 'time' as a reserved word if the next token begins with a '-'. The 'TIMEFORMAT' variable may be set to a
Итак, попробуйте запустить свой скрипт из оболочки Cygwin bash. Обычно это значение по умолчанию в терминале Cygwin