conedevelopment / sprucecss-site-eleventy

The documentation of Spruce CSS.
https://sprucecss.com
3 stars 1 forks source link

CI lint problem #55

Closed adamlaki closed 2 months ago

adamlaki commented 2 months ago

@szepeviktor any idea for this Viktor: https://github.com/conedevelopment/sprucecss-site-eleventy/actions/runs/10475542665/job/29012434806 ?

I tried the mentioned method to sync the lock file but nothing. On local, it works fine. I've tried to re-run it +10 times with different modifications with no luck.

szepeviktor commented 2 months ago

Here you go.

npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: undefined,
npm warn EBADENGINE   required: { node: '^21.0', npm: '^10.2', yarn: 'please-use-npm' },
npm warn EBADENGINE   current:  { node: 'v20.16.0', npm: '10.8.1' }
npm warn EBADENGINE }

https://github.com/conedevelopment/sprucecss-site-eleventy/blob/8daec1c15bad7155717db83b17db3eb86df8298d/.github/workflows/test.yml#L24

https://github.com/conedevelopment/sprucecss-site-eleventy/blob/8daec1c15bad7155717db83b17db3eb86df8298d/package.json#L36

adamlaki commented 2 months ago

I've got the same before when it was node 20. If this is controlled ba the .nvmrc file.

szepeviktor commented 2 months ago

Previously

npm error Missing: @types/markdown-it@14.1.2 from lock file
npm error Missing: @types/linkify-it@5.0.0 from lock file
npm error Missing: @types/mdurl@2.0.0 from lock file
adamlaki commented 2 months ago

Still did nothing with fresh install and synced lock.

szepeviktor commented 2 months ago

Try

npm cache clean
rm -rf node_modules
adamlaki commented 2 months ago

How I do this in the workflow file?

szepeviktor commented 2 months ago

I mean locally.

szepeviktor commented 2 months ago

npm i on my computer adds

+    "node_modules/@types/linkify-it": {
+      "version": "5.0.0",
+      "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz",
+      "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==",
+      "peer": true
+    },
+    "node_modules/@types/markdown-it": {
+      "version": "14.1.2",
+      "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.1.2.tgz",
+      "integrity": "sha512-promo4eFwuiW+TfGxhi+0x3czqTYJkG8qB17ZUJiVF10Xm7NLVRSLUsfRTU/6h1e24VvRnXCx+hG7li58lkzog==",
+      "peer": true,
+      "dependencies": {
+        "@types/linkify-it": "^5",
+        "@types/mdurl": "^2"
+      }
+    },
+    "node_modules/@types/mdurl": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz",
+      "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==",
+      "peer": true
+    },
adamlaki commented 2 months ago

At local everything works fine.