Skip to content

After v4 upgrade : Error is: cp: copyFileSync: could not write to dest file (code=EPERM) #3630

@RoyiNamir

Description

@RoyiNamir

This problem returned on TNS 4.

Look at this screen where my app is On :

image

Now let's change something in the code

image

See error :

image

It didn't happen before in v 3
Files ( origin files , )are read only due to TFS. But it did work before v4.

complete package.json :

https://gist.github.com/RoyiNamir/c7adb7454b075369b0d325b88575f374

complete error :

10:12:43 - File change detected. Starting incremental compilation...



10:12:44 - Compilation complete. Watching for file changes.



Executing before-prepare hook from C:\projects-web-storm\digital\dsapp1\hooks\before-prepare\nativescript-dev-sass.js
Hook skipped because either bundling or livesync is in progress.
Executing before-prepare hook from C:\projects-web-storm\digital\dsapp1\hooks\before-prepare\nativescript-dev-typescript.js
Hook skipped because either bundling or livesync is in progress.
Executing before-prepare hook from C:\projects-web-storm\digital\dsapp1\hooks\before-prepare\nativescript-plugin-firebase.js
Preparing project...
Executing before-prepareJSApp hook from C:\projects-web-storm\digital\dsapp1\hooks\before-prepareJSApp\nativescript-dev-webpack.js
Unable to apply changes for device: 192.168.104.101:5555. Error is: cp: copyFileSync: could not write to dest file (code=EPERM):C:/projects-web-storm/digital/dsapp1/platforms/android/app/src/main/assets/app/app.module.ngfactory.d.ts.
Executing after-watch hook from C:\projects-web-storm\digital\dsapp1\hooks\after-watch\nativescript-dev-sass.js
Stopping nativescript-dev-sass watcher
Executing after-watch hook from C:\projects-web-storm\digital\dsapp1\hooks\after-watch\nativescript-dev-typescript.js
Stopping tsc watch

Platform remove/add already been committed + full manual delete
Permission : everyone full control
Again - it didnt happen before
in v 4 we had to check out for edit (which remove read only flag) only : App_resources & Hooks & package.json

But now , we have to check out the WHOLE project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbuildDescribes issues related to build operationslivesyncrunDescribes issues related to run command

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions