如何解决如何安装特定的 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 后,您可以创建一个使用核心依赖项的项目
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。