yari
yari copied to clipboard
running step "yarn install" for yari on windows 10
Summary
I use:
- OS: windows 10 V22H2 (compilation 19045.4170)
- git bash: 2.42.0.2
- Node: v18.19.1
- npm: 10.2.4
- yarn: 1.22.22
I can't install yari's dependencies through yarn command. I am running yarn into a git bash console with Administrator Privileges I am not sure how to fix it.
` $ yarn yarn install v1.22.22 [1/5] Validating package.json... [2/5] Resolving packages... success Already up-to-date. $ (husky || true) && yarn install:all && yarn install:all:npm yarn run v1.22.22 $ find . -mindepth 2 -name 'yarn.lock' ! -wholename '/node_modules/' -print0 | xargs -n1 -0 sh -cx 'yarn --cwd $(dirname $0) install' ++ dirname ./client/pwa/yarn.lock
- yarn --cwd ./client/pwa install [1/4] Resolving packages... success Already up-to-date. ++ dirname ./libs/locale-utils/yarn.lock
- yarn --cwd ./libs/locale-utils install [1/4] Resolving packages... success Already up-to-date. ++ dirname ./libs/pong/yarn.lock
- yarn --cwd ./libs/pong install [1/4] Resolving packages... success Already up-to-date. ++ dirname ./libs/slug-utils/yarn.lock
- yarn --cwd ./libs/slug-utils install [1/4] Resolving packages... success Already up-to-date. Done in 91.68s. yarn run v1.22.22 $ find . -mindepth 2 -name 'package-lock.json' ! -wholename '/node_modules/' -print0 | xargs -n1 -0 sh -cx 'npm --prefix $(dirname $0) install' ++ dirname ./cloud-function/package-lock.json
- npm --prefix ./cloud-function install npm WARN cleanup Failed to remove some directories [ npm WARN cleanup [ npm WARN cleanup 'D:\dev_20220602\Colaboraciones\mdn\yari\cloud-function\node_modules', npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'D:\dev_20220602\Colaboraciones\mdn\yari\cloud-function\node_modules\resolve'] { npm WARN cleanup errno: -4048, npm WARN cleanup code: 'EPERM', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'D:\dev_20220602\Colaboraciones\mdn\yari\cloud-function\node_modules\resolve' npm WARN cleanup } npm WARN cleanup ] npm WARN cleanup ] npm ERR! code 123 npm ERR! path D:\dev_20220602\Colaboraciones\mdn\yari npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c (husky || true) && yarn install:all && yarn install:all:npm npm ERR! $ find . -mindepth 2 -name 'yarn.lock' ! -wholename '/node_modules/' -print0 | xargs -n1 -0 sh -cx 'yarn --cwd $(dirname $0) install' npm ERR! [1/4] Resolving packages... npm ERR! success Already up-to-date. npm ERR! [1/4] Resolving packages... npm ERR! success Already up-to-date. npm ERR! [1/4] Resolving packages... npm ERR! success Already up-to-date. npm ERR! [1/4] Resolving packages... npm ERR! success Already up-to-date. npm ERR! $ find . -mindepth 2 -name 'package-lock.json' ! -wholename '/node_modules/' -print0 | xargs -n1 -0 sh -cx 'npm --prefix $(dirname $0) install' npm ERR! info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. npm ERR! ++ dirname ./client/pwa/yarn.lock npm ERR! + yarn --cwd ./client/pwa install npm ERR! ++ dirname ./libs/locale-utils/yarn.lock npm ERR! + yarn --cwd ./libs/locale-utils install npm ERR! ++ dirname ./libs/pong/yarn.lock npm ERR! + yarn --cwd ./libs/pong install npm ERR! ++ dirname ./libs/slug-utils/yarn.lock npm ERR! + yarn --cwd ./libs/slug-utils install npm ERR! ++ dirname ./cloud-function/package-lock.json npm ERR! + npm --prefix ./cloud-function install npm ERR! npm ERR! code 123 npm ERR! npm ERR! path D:\dev_20220602\Colaboraciones\mdn\yari npm ERR! npm ERR! command failed npm ERR! npm ERR! command C:\Windows\system32\cmd.exe /d /s /c (husky || true) && yarn install:all && yarn install:all:npm npm ERR! npm ERR! $ find . -mindepth 2 -name 'yarn.lock' ! -wholename '/node_modules/' -print0 | xargs -n1 -0 sh -cx 'yarn --cwd $(dirname $0) install' npm ERR! npm ERR! [1/4] Resolving packages... npm ERR! npm ERR! success Already up-to-date. npm ERR! npm ERR! [1/4] Resolving packages... npm ERR! npm ERR! success Already up-to-date. npm ERR! npm ERR! [1/4] Resolving packages... npm ERR! npm ERR! success Already up-to-date. npm ERR! npm ERR! [1/4] Resolving packages... npm ERR! npm ERR! success Already up-to-date. npm ERR! npm ERR! $ find . -mindepth 2 -name 'package-lock.json' ! -wholename '/node_modules/' -print0 | xargs -n1 -0 sh -cx 'npm --prefix $(dirname $0) install' npm ERR! npm ERR! info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. npm ERR! npm ERR! ++ dirname ./client/pwa/yarn.lock npm ERR! npm ERR! + yarn --cwd ./client/pwa install npm ERR! npm ERR! ++ dirname ./libs/locale-utils/yarn.lock npm ERR! npm ERR! + yarn --cwd ./libs/locale-utils install npm ERR! npm ERR! ++ dirname ./libs/pong/yarn.lock npm ERR! npm ERR! + yarn --cwd ./libs/pong install npm ERR! npm ERR! ++ dirname ./libs/slug-utils/yarn.lock npm ERR! npm ERR! + yarn --cwd ./libs/slug-utils install npm ERR! npm ERR! ++ dirname ./cloud-function/package-lock.json npm ERR! npm ERR! + npm --prefix ./cloud-function install npm ERR! npm ERR! npm ERR! code EPERM npm ERR! npm ERR! npm ERR! syscall symlink npm ERR! npm ERR! npm ERR! path D:\dev_20220602\Colaboraciones\mdn\yari\cloud-function\src\internal\constants npm ERR! npm ERR! npm ERR! dest D:\dev_20220602\Colaboraciones\mdn\yari\cloud-function\[email protected] npm ERR! npm ERR! npm ERR! errno -4048 npm ERR! npm ERR! npm ERR! Error: EPERM: operation not permitted, symlink 'D:\dev_20220602\Colaboraciones\mdn\yari\cloud-function\src\internal\constants' -> 'D:\dev_20220602\Colaboraciones\mdn\yari\cloud-function\[email protected]' npm ERR! npm ERR! npm ERR! [Error: EPERM: operation not permitted, symlink 'D:\dev_20220602\Colaboraciones\mdn\yari\cloud-function\src\internal\constants' -> 'D:\dev_20220602\Colaboraciones\mdn\yari\cloud-function\[email protected]'] { npm ERR! npm ERR! npm ERR! errno: -4048, npm ERR! npm ERR! npm ERR! code: 'EPERM', npm ERR! npm ERR! npm ERR! syscall: 'symlink', npm ERR! npm ERR! npm ERR! path: 'D:\dev_20220602\Colaboraciones\mdn\yari\cloud-function\src\internal\constants', npm ERR! npm ERR! npm ERR! dest: 'D:\dev_20220602\Colaboraciones\mdn\yari\cloud-function\node_modules\@yari-internal\.constants-faBCTgS8' npm ERR! npm ERR! npm ERR! } npm ERR! npm ERR! npm ERR! npm ERR! npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! npm ERR! npm ERR! It's possible that the file was already in use (by a text editor or antivirus), npm ERR! npm ERR! npm ERR! or that you lack permissions to access it. npm ERR! npm ERR! npm ERR! npm ERR! npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! npm ERR! npm ERR! permissions of the file and its containing directories, or try running npm ERR! npm ERR! npm ERR! the command again as root/Administrator. npm ERR! npm ERR! npm ERR! npm ERR! npm ERR! A complete log of this run can be found in: C:\Users\bgva\AppData\Local\npm-cache_logs\2024-03-18T00_33_23_365Z-debug-0.log npm ERR! npm ERR! error Command failed with exit code 123. npm ERR! npm ERR! npm ERR! A complete log of this run can be found in: C:\Users\bgva\AppData\Local\npm-cache_logs\2024-03-18T00_32_40_682Z-debug-0.log npm ERR! error Command failed with exit code 123.
npm ERR! A complete log of this run can be found in: C:\Users\bgva\AppData\Local\npm-cache_logs\2024-03-18T00_31_04_473Z-debug-0.log error Command failed with exit code 123. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 123. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
`
URL
there are not URLs
Reproduction steps
- git clone https://github.com/Byron2016/yari.git --depth=1
- cd yari
- yarn
Expected behavior
all instalation process is doing without errors.
Actual behavior
there are a error in this step:
"install:all:npm": "find . -mindepth 2 -name 'package-lock.json' ! -wholename '**/node_modules/**' -print0 | xargs -n1 -0 sh -cx 'npm --prefix $(dirname $0) install'",
Device
Laptop
Browser
Chrome
Browser version
Stable
Operating system
Windows
Screenshot
No response
Anything else?
No response
Validations
- [X] I have read the Community Participation Guidelines.
- [X] I have verified that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] I have checked that this is a concrete bug. For Q&A open a GitHub Discussion.
@Byron2016 Thanks for taking the time to report this issue. We don't actively support Git Bash on Windows and recommend using WSL2 instead.
Can you try adding the --no-bin-links
parameter here between npm
and --prefix
and then run yarn install
again:
https://github.com/mdn/yari/blob/e8ec3d3b888950cc4a3d052241f93216a5b5d9f5/package.json#L34
@caugner your suggestion about to add --no-bin-links parameter here between npm and --prefix and then run yarn install again
doesn´t work, then I decided to install wsl in my windows 10, the problem did not appear with wsl.
+1 here