Skip to content

[Bug] WIP: Multiple cache folders to fix windows EPERM error - #141

Closed
NogsMPLS wants to merge 1 commit into
lerna:masterfrom
NogsMPLS:newCacheFolderEachRepo
Closed

NogsMPLS wants to merge 1 commit into
lerna:masterfrom
NogsMPLS:newCacheFolderEachRepo

Conversation

@NogsMPLS

@NogsMPLS NogsMPLS commented May 17, 2016 •

Copy link
Copy Markdown
Contributor

On windows, I kept getting EPERM: operation not permitted errors, which would randomly make lerna bootstrap fail. After a bit of research I think the issue has to do with parallel instances of npm install running at the same time and butting heads in the npm-cache folder.

An idea I had to combat this was to have a different cache folder for each npm install. This pull request appends the --cache=/folder command to the npm install.

As a quick prototype I just sent in the length of the external dependencies as an argument to get unique folder names for each npm install. Obviously will need to do something better than that.

Would like comments/feedback on how to evolve this approach for windows users. Does lerna depend on the npm cache? Does changing the paths like this mess with lerna in some way?

@hzoo hzoo mentioned this pull request Jun 21, 2016
@gigabo

gigabo commented Sep 2, 2016

Copy link
Copy Markdown
Contributor

@NogsMPLS Was this covered by #236?

@jamiebuilds

Copy link
Copy Markdown
Contributor

ping @NogsMPLS

@jamiebuilds jamiebuilds changed the title WIP: Multiple cache folders to fix windows EPERM error [Bug] WIP: Multiple cache folders to fix windows EPERM error Nov 16, 2016
@doug-wade

Copy link
Copy Markdown
Contributor

Hi @NogsMPLS, we really appreciate you pitching in! This has been open for quite some time, and hasn't seen any activity. Please, feel free to open a new PR once you've rebased your branch if this issue is still affecting you.

@doug-wade doug-wade closed this Jan 28, 2017
@lock

lock Bot commented Dec 27, 2018

Copy link
Copy Markdown

This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Dec 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants