Github Actions npm install fails without changes to package.json #25794
-
Hey, I use Github actions for my repository to deploy to the actual running server. This works great until yesterday. I just commited an update and pushed it. The Action got triggered but then there was a failure. The failure came from the following command:
I have no idea why this is happening since I didn’t change anthing about configuration or even the package.json file. My project is dependant to the sass library and this seems to create the following errors:
My package.json is here:
I changed the ubuntu version fro 18. I switch from node-sass to sass due to deprecations. I tried to install build-essentials before the install but it already got the latest version… I have no idea where or what to fix? Can this be an error with Github Actions? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi, I had the same issue yesterday in my github action with cypress-io/github-action@v2. For me it helped to delete the package-lock.json and the node_modules folder. Then npm i (locally) and commit to git. Afterwards all errors were gone. |
Beta Was this translation helpful? Give feedback.
-
hey, thank you for your answer. The thing is I am not commiting the package-lock.json and also no node_modules folder. So on GitHub Actions run there is none of them present. I got no problem at all doing an npm install locally. Also my colleague got no issues on local. Also there were no changes to the package.json since months regarding something else than the version number… |
Beta Was this translation helpful? Give feedback.
-
I fixed the problem. I want to share my solution here. I upgraded the sass-loader package as follows in package.json
|
Beta Was this translation helpful? Give feedback.
-
my enterprise account? need the login I’ve forgot |
Beta Was this translation helpful? Give feedback.
I fixed the problem. I want to share my solution here.
I upgraded the sass-loader package as follows in package.json