当我尝试运行时,我尝试更新我的 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 生成的文件夹:hooks、node_modules 和 platforms。
完成后,您现在将拥有一个全新的状态来更新您的项目:
tns update next
关于angular - 当我尝试更新 NativeScript 项目时收到错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63307843/