Skip to content
This repository has been archived by the owner on Aug 17, 2021. It is now read-only.

An error is thrown when trying to remove or reinstall an other node module (with Yarn) #140

Open
gaku-sei opened this issue Feb 19, 2021 · 3 comments

Comments

@gaku-sei
Copy link

Running yarn or yarn remove ... will often throw an error, like here on Circle CI:

/home/circleci/workspace/node_modules/@dylanirlbeck/tailwind-ppx: Command failed.
Exit code: 1
Command: node ./postinstall.js
Arguments: 
Directory: /home/circleci/workspace/node_modules/@dylanirlbeck/tailwind-ppx
Output:
error: Error: EEXIST: file already exists, mkdir '/home/circleci/workspace/node_modules/@dylanirlbeck/tailwind-ppx/3'

I wonder if removing the folder 3 in the postinstall script (after the package is built) could solve this issue?

@dylanirlbeck
Copy link
Owner

Hmm, yeah that is weird. I haven't looked at the build process in quite a while, so I'll need to revisit this issue.

We do some weird stuff with caching in the same directory as the package, so that might be causing the issue.

@dauletisataev
Copy link

@dylanirlbeck any updates?

@dylanirlbeck
Copy link
Owner

@dauletisataev No updates, but I will take a look soon to see if there's an easy fix. I just graduated so I'll have some more time on my hands 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants