You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have installed wsl on machine using instructions. I have a custom project in which I use yarn to install dependencies. Any command in yarn fails with error :
$yarn install
yarn install v1.22.19
warning ../../../../package.json: No license field
error An unexpected error occurred: "Failed to replace env in config: ${APPDATA}".
info If you think this is a bug, please open a bug report with the information provided in "/mnt/c/Users/project/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
This error appears only in wsl but works fine in windows. Installed yarn version:
yarn --version
1.22.19
Any suggestions ?
Expected Behavior
$yarn install
yarn install v1.22.19
warning ..\..\..\..\package.json: No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "@apidevtools/swagger-cli > @apidevtools/[email protected]" has unmet peer dependency "openapi-types@>=7".
[4/4] Building fresh packages...
$ husky install
husky - Git hooks installed
Done in 45.50s.
Actual Behavior
Fails with error
$ yarn install
yarn install v1.22.19
warning ../../../../package.json: No license field
error An unexpected error occurred: "Failed to replace env in config: ${APPDATA}"
This discussion was converted from issue #10589 on October 04, 2023 20:46.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Windows Version
Microsoft Windows [Version 10.0.19044.3324]
WSL Version
WSL version: 1.2.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
Ubuntu 2
Distro Version
Default Distribution: Ubuntu , Default Version: 2
Other Software
No response
Repro Steps
I have installed wsl on machine using instructions. I have a custom project in which I use yarn to install dependencies. Any command in yarn fails with error :
This error appears only in wsl but works fine in windows. Installed yarn version:
Any suggestions ?
Expected Behavior
Actual Behavior
Fails with error
Diagnostic Logs
No response
Beta Was this translation helpful? Give feedback.
All reactions