1

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

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 info

√ 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.

我正在使用带有 Angular 的 Nativescript,它是代码共享项目

4

1 回答 1

1

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

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

完成后,您现在可以通过以下方式更新项目:

tns update next
于 2020-08-09T09:31:36.907 回答