Open jAg-upfort opened 5 months ago
Same issue exists for me with the node:18-alpine and node:20-alpine releases.
Hey, just wanted to ping on this bug and see about getting a timeline/triage for this bug
Same issue with versions 18 and 20 still
I'm still seeing this issue with the latest LTS.
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
This is a direct follow-on/reopen of #7413. It was hoped that this was fixed in 10.8.0 with #7495, however, this fix is not sufficient, and I've updated the project files to show this.
npm as of version 10.5.2 no longer lets you run scripts in a workspace package.json if your project is located at
/
. I've confirmed it worked in 10.5.1.The specific error is the same:
I've included a zipped project, the 4 individual files and a screenshot of the project with all the files in their entirety visible. The top level package.json has scripts to build the dockerfile in ways that show the bug and that it's a regression.
npm-bug-example-update.zip
package.json Dockerfile.txt package-lock.json package.json
Expected Behavior
The Dockerfile should build, and not fail due to being unable to find the workspace. This works successfully in 10.5.1, but does not work in
10.5.2
,10.6.0
,10.7.0
, and10.8.0
Steps To Reproduce
Both validations assume the project has been unzipped from the uploaded archive or recreated with the raw files in the right places, that docker is installed, and that the testing environment has an internet connection for downloading the base docker images.
I have personally only run this on an Ubuntu system, so Windows or mac users might have other setup requirements.
To validate the issue:
npm run npm-unfixed
To validate that things work in 10.5.1:
npm run npm-good
Environment
node:iron
andnode:hydrogen
dockerfiles use, but i've also recreated the issue withubuntu:jammy
andpostgres:15-bullseye
for shigglesas part of debugging the issue in my actual environment