angular - 当我尝试更新 NativeScript 项目时收到错误消息

标签 angular typescript nativescript cross-platform nativescript-codesharing

当我尝试运行时,我尝试更新我的 native 脚本项目

tns update next

我收到错误

Could not update the project! Reason is: rm: could not remove file (code EBUSY): C:/work/MyProject/zero/angular/platforms/android/build-tools/runSbg.log

我的tns信息

√ Getting NativeScript components versions information...
‼ Update available for component nativescript. Your current version is 6.4.0 and the latest available version is 6.8.0.
‼ Update available for component tns-core-modules. Your current version is 6.4.2 and the latest available version is 6.5.13.
‼ Update available for component tns-android. Your current version is 6.4.1 and the latest available version is 6.5.3.
× Component tns-ios is not installed.

我正在将 Nativescript 与 Angular 一起使用,它是代码共享项目

最佳答案

这很可能是由于正在运行的进程正在使用该文件造成的。要解决此问题,请确保您已结束运行 Nativescript 或在本例中为 android 的所有进程。如果您不确定,可以重新启动电脑。

之后,如果您想进行全新更新/安装;转到项目根文件夹,然后删除 Nativescript 生成的文件夹:hooksnode_modulesplatforms

完成后,您现在将拥有一个全新的状态来更新您的项目:

tns update next

关于angular - 当我尝试更新 NativeScript 项目时收到错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63307843/

相关文章:

Angular:无法读取未定义的属性 'controls'

angular - 基于有效载荷而不是效果取消可观察

html - 是否可以直接在 Angular 2 html 模板中访问全局变量?

javascript - ES 模块 : import named exports as module?

javascript - Angular Firebase 查询?

Angular:无法读取 null 的属性 'component'

angular - Storybook 在 Angular Intershop 项目中不起作用

带抽屉和登录页面的 Nativescript 4.1 app-root

ios - Nativescript:当应用程序进入后台时继续执行代码

android - 示例 android 应用程序未部署在 android 设备中