renative icon indicating copy to clipboard operation
renative copied to clipboard

[Windows] Fails to bootstrap

Open Marius456 opened this issue 6 months ago • 4 comments

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):

  • OS: windows 11
  • Node Version v18.18.1
  • RNV Version 1.0.0

Marius456 avatar Aug 20 '24 06:08 Marius456