问题描述
我正在尝试安装 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 后,您可以创建一个使用核心依赖项的项目