Невозможно получить 4.1.2 при выполнении npm install -g nativescript
.
Скорее всего, на вашем компьютере установлено более одного nativescript
CLI.Вы можете выяснить это, выполнив:
`which tns` (or `where tns` on Windows) - it will return the problematic `tns` 4.1.2. location.
`npm get prefix` - this is the location of your global npm modules where will be your nativescript@5.4.2.
`echo $PATH` - I suppose that the problematic `tns` location will be before the global npm modules location in your `PATH` variable.
Чтобы начать использовать CLI 5.4.2, вам просто нужно исправить значение $ PATH и установить глобальное расположение модулей npm перед NativeScript 4.1.2.один.