Yarn 3 YN0001- Error while persisting
See original GitHub issueI’m getting YN0001- Error while persisting....
on windows when I run yarn install
. Version Yarn 3.2.3
It occurs during the linking process. I’m using node-modules linker.
I haven’t found any solution for this issue on the internet .
➤ YN0001: │ Error: While persisting /C:/Users/.../AppData/Local/Yarn/Berry/cache/json-schema-library-npm-7.2.0-542ab2e6c3-8.zip/node_modules/json-schema-library/ -> /C:/Users/...backstage/node_modules/json-schema-library ENOENT: no such file or directory, open 'C:\Users\PNastasi\Documents\eg-group\backstage\node_modules\json-schema-library\profiles\develop-doValidations-2022-09-28 15:37:34.txt'
`
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Yarn 3 YN0001- Error while persisting · Issue #8894 - GitHub
I'm getting YN0001- Error while persisting.... on windows when I run yarn install . Version Yarn 3.2.3 It occurs during the linking process....
Read more >Error Codes | Yarn - Package Manager
This code is used to log regular messages, mostly to align all the lines in the Yarn output. No worry! YN0001 - EXCEPTION....
Read more >npm - Why does "yarn install" raise an ENOENT error when ...
I'm trying to migrate to Yarn. When I run yarn install in the console, it gives me an error: An unexpected error occurred:...
Read more >Configure and use Yarn with CodeArtifact - AWS Documentation
The login command will configure your ~/.npmrc file with your CodeArtifact repository endpoint information and credentials. With Yarn 1.X , yarn commands use ......
Read more >Yarnpkg Development Blog
Release posts and development notes for Yarn, the JavaScript package ... It can be difficult to know how to react when facing errors....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Okay, we were able to reproduce your issue. The verdict is: this is a bug in
json-schema-library@7.2.0
, they should not publish filenames with:
as they are invalid on Windows. Moreover they seem to not mean publishing this file (profiles\develop-doValidations-2022-09-28 15:37:34.txt
) at all, as it is generated and probably not used by their package at all. Closing as external bug.I can reproduce on Windows with the following:
The issue is that
json-schema-library@7.2.0
contains filenames with reserved characters which aren’t allowed on Windows, specifically the:
(colon). https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions:~:text=except for the,%3A (colon)