如何安装特定的 NativeScript 版本?

问题描述

我正在尝试安装 tns 6.7.4 版本,但我只安装了 7.1.2 版本。

我尝试这样做:

sudo npm uninstall -g nativescript 
sudo npm cache clean --force
sudo npm install -g nativescript@6.7.4

我也尝试过 nativescript@6 nativescript@6.7,但一切都以 7.1.2 版本结束。

解决方法

命令 @bot.command() async def commandme(ctx,*member=None,message=None): if message: if member: #here I execute the command using message and member else await ctx.send("Please either reply using the command or write a message while tagging a user using teh command") 将安装 NativeScript CLI。它不会更新/迁移您现有的项目。但是,一旦您安装了特定版本的 CLI,您就可以使用它来创建具有相关版本的新项目。

例如

npm i -g nativescript

拥有所需版本的 CLI 后,您可以创建一个使用核心依赖项的项目

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...