-
-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Windows] Fails to bootstrap #1655
Comments
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> |
After separately running those two commands: |
Got error when I pulled updates with
Didn't work and still got the same error. Next day I tried using |
Got error after
Find out that commands works when I close VS Code. However, it worked before with VS Code open. |
VS Code is blocking the file, causing |
Describe the bug
When you try to
yarn bootstrap
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots or copy&paste
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: