I'm using a monorepo setup where the app1 & app2 depend on the same package @annotorious/core located on GH. The package is written in TS and requires the compilation step. So I added the npm install --ignore-scripts && npm run build script to postinstall:
I was able to solve that by purging all the node_module folders within the root of the monorepo and all the sub-packages. After that the npm i --force finished successfully 🎉
Issue
I'm using a monorepo setup where the
app1
&app2
depend on the same package@annotorious/core
located on GH. The package is written inTS
and requires the compilation step. So I added thenpm install --ignore-scripts && npm run build
script topostinstall
:Unfortunately, when I run the
npm install
command across the workspaces I get the following error:I suppose the issue is that the same package tries to place its temporary cache in the same folder 🤔