ubyssey.ca icon indicating copy to clipboard operation
ubyssey.ca copied to clipboard

Failed to install `node-sass` with Node 16

Open psiemens opened this issue 1 year ago • 0 comments

What behavior were you expecting?

I was expecting to be able to install all the Node module dependencies with Node v16.

What was your environment like?

macOS v13.0, M2 chip Node v16.20.1

Do you have any logs?

> npm install
npm WARN idealTree Removing dependencies.node-sass in favor of devDependencies.node-sass

changed 1 package, and audited 1015 packages in 41s

31 packages are looking for funding
  run `npm fund` for details

28 vulnerabilities (3 moderate, 21 high, 4 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
(ubyssey.ca) petersiemens@Peters-MacBook-Air static_src % gulp buildDev                 
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
[15:03:02] Using gulpfile ~/dev/ubyssey.ca/ubyssey/static_src/gulpfile.js
[15:03:02] Starting 'buildDev'...
[15:03:02] Starting 'cleanJsTask'...
[15:03:02] Starting 'cleanCssTask'...
[15:03:02] Starting 'cleanImagesTask'...
[15:03:02] Starting 'cleanVideosTask'...
[15:03:02] Starting 'cleanFontsTask'...
[15:03:02] Finished 'cleanJsTask' after 24 ms
[15:03:02] Finished 'cleanFontsTask' after 27 ms
[15:03:02] Finished 'cleanVideosTask' after 30 ms
[15:03:02] Finished 'cleanCssTask' after 31 ms
[15:03:02] Finished 'cleanImagesTask' after 31 ms
[15:03:02] Starting 'webpackBuildDevTask'...
[15:03:02] Starting 'sassBuildDevTask'...
[15:03:02] Starting 'copyImagesTask'...
[15:03:02] Starting 'copyVideosTask'...
[15:03:02] Starting 'copyFontsTask'...
[15:03:02] 'webpackBuildDevTask' errored after 318 ms
[15:03:02] Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at module.exports (/Users/petersiemens/dev/ubyssey.ca/ubyssey/static_src/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/Users/petersiemens/dev/ubyssey.ca/ubyssey/static_src/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/Users/petersiemens/dev/ubyssey.ca/ubyssey/static_src/node_modules/webpack/lib/NormalModule.js:471:10)
    at /Users/petersiemens/dev/ubyssey.ca/ubyssey/static_src/node_modules/webpack/lib/NormalModule.js:503:5
    at /Users/petersiemens/dev/ubyssey.ca/ubyssey/static_src/node_modules/webpack/lib/NormalModule.js:358:12
    at /Users/petersiemens/dev/ubyssey.ca/ubyssey/static_src/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/Users/petersiemens/dev/ubyssey.ca/ubyssey/static_src/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/Users/petersiemens/dev/ubyssey.ca/ubyssey/static_src/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
[15:03:02] 'buildDev' errored after 350 ms

psiemens avatar Jul 10 '23 06:07 psiemens