tailwind-ppx icon indicating copy to clipboard operation
tailwind-ppx copied to clipboard

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

Open gaku-sei opened this issue 4 years ago • 3 comments

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?

gaku-sei avatar Feb 19 '21 06:02 gaku-sei

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.

dylanirlbeck avatar Mar 10 '21 15:03 dylanirlbeck

@dylanirlbeck any updates?

dauletisataev avatar May 12 '21 11:05 dauletisataev

@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 😄

dylanirlbeck avatar May 15 '21 23:05 dylanirlbeck