flexn-io / renative

πŸš€πŸš€πŸš€ Unified Development Platform for iOS, tvOS, Android, Android TV, Android Wear, Web, Tizen TV, Tizen Watch, Tizen Mobile, LG webOS, macOS/OSX, Windows, KaiOS, FirefoxOS Firefox TV platforms
https://renative.org
MIT License
1.8k stars 180 forks source link

[Windows] Fails to bootstrap #1655

Open Marius456 opened 3 weeks ago

Marius456 commented 3 weeks ago

Describe the bug When you try to yarn bootstrap

To Reproduce Steps to reproduce the behavior:

  1. Run command 'yarn bootstrap'
  2. See error

Expected behavior

Screenshots or copy&paste

PS D:\Projects\renative> yarn bootstrap
yarn run v1.22.19
$ npx lerna@6 bootstrap && yarn build && yarn link:rnv && yarn generateSchema
lerna notice cli v6.6.2
lerna info versioning independent
lerna info bootstrap root only
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
$ npx lerna link --force-local && npx jetify
lerna notice cli v6.6.2
lerna info versioning independent
lerna info Symlinking packages and binaries
Jetifier is deprecated. Future versions of react-native CLI may not run it by default.
Jetifier found 2355 file(s) to forward-jetify. Using 12 workers...
$ lerna run build
lerna notice cli v6.6.2
lerna info versioning independent

    √  @rnv/config-templates:build (1s)
    √  @rnv/adapter:build (8s)
    √  @rnv/renative:build (9s)
    √  @rnv/core:build (14s)

    Γ—  @rnv/sdk-utils:build
$ yarn clean && yarn compile
$ rimraf -I ./lib && rimraf -I tsconfig.tsbuildinfo
D:\Projects\renative\packages\core\node_modules\rimraf\bin.js:47
             throw er
             ^

       [Error: EPERM: operation not permitted, unlink 'D:\Projects\renative\packages\sdk-utils\lib\axiosUtils.d.ts'] {
         errno: -4048,
         code: 'EPERM',
         syscall: 'unlink',
         path: 'D:\\Projects\\renative\\packages\\sdk-utils\\lib\\axiosUtils.d.ts'
       }

       Node.js v18.18.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

    Γ—  @rnv/engine-roku:build
$ yarn clean && yarn compile
$ rimraf -I ./lib && rimraf -I tsconfig.tsbuildinfo
D:\Projects\renative\packages\core\node_modules\rimraf\bin.js:47
             throw er
             ^

       [Error: EPERM: operation not permitted, unlink 'D:\Projects\renative\packages\engine-roku\lib\index.d.ts'] {
         errno: -4048,
         code: 'EPERM',
         syscall: 'unlink',
         path: 'D:\\Projects\\renative\\packages\\engine-roku\\lib\\index.d.ts'
       }

       Node.js v18.18.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

    √  @rnv/integration-starter:build (13s)
    √  @rnv/integration-docker:build (13s)
    √  @rnv/build-hooks-git:build (13s)
    √  @rnv/build-hooks-schema:build (14s)

 β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” 

 >  Lerna (powered by Nx)   Ran target build for 29 projects (29s)

    √    8/10 succeeded [0 read from cache]

    Γ—    2/10 targets failed, including the following:
         - @rnv/sdk-utils:build
         - @rnv/engine-roku:build

   Hint: Try "nx view-logs" to get structured, searchable errors logs in your browser.

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
PS D:\Projects\renative>

Desktop (please complete the following information):

Marius456 commented 3 weeks ago

yarn bootstrap clean also fails:

PS D:\Projects\renative> yarn bootstrap clean
yarn run v1.22.19
$ npx lerna@6 bootstrap && yarn build && yarn link:rnv && yarn generateSchema clean
lerna notice cli v6.6.2
lerna info versioning independent
lerna info bootstrap root only
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
$ npx lerna link --force-local && npx jetify
lerna notice cli v6.6.2
lerna info versioning independent
lerna info Symlinking packages and binaries
Jetifier is deprecated. Future versions of react-native CLI may not run it by default.
Jetifier found 2355 file(s) to forward-jetify. Using 12 workers...
$ lerna run build
lerna notice cli v6.6.2
lerna info versioning independent

    √  @rnv/config-templates:build (1s)
    √  @rnv/adapter:build (6s)
    √  @rnv/renative:build (6s)
    √  @rnv/core:build (12s)
    √  @rnv/engine-roku:build (13s)
    √  @rnv/build-hooks-git:build (14s)
    √  @rnv/integration-starter:build (14s)
    √  @rnv/build-hooks-schema:build (14s)
    √  @rnv/integration-docker:build (14s)
    √  @rnv/sdk-utils:build (14s)

    Γ—  @rnv/sdk-telemetry:build
$ yarn clean && yarn compile
$ rimraf -I ./lib && rimraf -I tsconfig.tsbuildinfo
D:\Projects\renative\packages\core\node_modules\rimraf\bin.js:47
             throw er
             ^

       [Error: EPERM: operation not permitted, unlink 'D:\Projects\renative\packages\sdk-telemetry\lib\constants.d.ts'] {
         errno: -4048,
         code: 'EPERM',
         syscall: 'unlink',
         path: 'D:\\Projects\\renative\\packages\\sdk-telemetry\\lib\\constants.d.ts'
       }

       Node.js v18.18.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

    Γ—  @rnv/sdk-react-native:build                                                                                                                             
$ yarn clean && yarn compile                                                                                                                                   
$ rimraf -I ./lib && rimraf -I tsconfig.tsbuildinfo                                                                                                            
D:\Projects\renative\packages\core\node_modules\rimraf\bin.js:47                                                                                               
             throw er                                                                                                                                          
             ^                                                                                                                                                 

       [Error: EPERM: operation not permitted, unlink 'D:\Projects\renative\packages\sdk-react-native\lib\adapters.d.ts'] {                                    
         errno: -4048,                                                                                                                                         
         code: 'EPERM',                                                                                                                                        
         syscall: 'unlink',                                                                                                                                    
         path: 'D:\\Projects\\renative\\packages\\sdk-react-native\\lib\\adapters.d.ts'                                                                        
       }                                                                                                                                                       

       Node.js v18.18.1                                                                                                                                        
error Command failed with exit code 1.                                                                                                                         
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.                                                                           
error Command failed with exit code 1.                                                                                                                         
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.                                                                           

    Γ—  @rnv/sdk-webpack:build                                                                                                                                  
$ yarn clean && yarn compile                                                                                                                                   
$ rimraf -I ./lib && rimraf -I tsconfig.tsbuildinfo                                                                                                            
D:\Projects\renative\packages\core\node_modules\rimraf\bin.js:47                                                                                               
             throw er                                                                                                                                          
             ^                                                                                                                                                 

       [Error: EPERM: operation not permitted, unlink 'D:\Projects\renative\packages\sdk-webpack\lib\adapter.d.ts'] {                                          
         errno: -4048,                                                                                                                                         
         code: 'EPERM',                                                                                                                                        
         syscall: 'unlink',                                                                                                                                    
         path: 'D:\\Projects\\renative\\packages\\sdk-webpack\\lib\\adapter.d.ts'                                                                              
       }                                                                                                                                                       

       Node.js v18.18.1                                                                                                                                        
error Command failed with exit code 1.                                                                                                                         
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.                                                                           
error Command failed with exit code 1.                                                                                                                         
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.                                                                           

    Γ—  @rnv/engine-rn-next:build                                                                                                                               
$ yarn clean && yarn compile
$ rimraf -I ./lib && rimraf -I tsconfig.tsbuildinfo
D:\Projects\renative\packages\core\node_modules\rimraf\bin.js:47                                                                                               
             throw er                                                                                                                                          
             ^                                                                                                                                                 

       [Error: EPERM: operation not permitted, unlink 'D:\Projects\renative\packages\engine-rn-next\lib\config.d.ts'] {                                        
         errno: -4048,                                                                                                                                         
         code: 'EPERM',                                                                                                                                        
         syscall: 'unlink',                                                                                                                                    
         path: 'D:\\Projects\\renative\\packages\\engine-rn-next\\lib\\config.d.ts'                                                                            
       }                                                                                                                                                       

       Node.js v18.18.1                                                                                                                                        
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

    √  @rnv/engine-core:build (15s)

 β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€” 

 >  Lerna (powered by Nx)   Ran target build for 29 projects (43s)

    √    11/15 succeeded [0 read from cache]

    Γ—    4/15 targets failed, including the following:
         - @rnv/sdk-telemetry:build
         - @rnv/sdk-react-native:build
         - @rnv/sdk-webpack:build
         - @rnv/engine-rn-next:build

   Hint: Try "nx view-logs" to get structured, searchable errors logs in your browser.

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
PS D:\Projects\renative>