question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Yarn 3 YN0001- Error while persisting

See original GitHub issue

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. 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:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
larixercommented, Oct 24, 2022

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.

1reaction
merceyzcommented, Oct 24, 2022

I can reproduce on Windows with the following:

cd $(mktemp -d)
yarn init -2
yarn set version 3.2.3
yarn config set nodeLinker node-modules
yarn add json-schema-library@7.2.0

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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found