tower_game
tower_game copied to clipboard
Cannot run the game
I can't run the game:
$ npm install
npm warn deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm warn deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm warn deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm warn deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm warn deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm warn deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm warn deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
added 660 packages, and audited 661 packages in 22s
26 packages are looking for funding
run `npm fund` for details
30 vulnerabilities (3 low, 6 moderate, 16 high, 5 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.
npm notice
npm notice New major version of npm available! 10.9.2 -> 11.2.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.2.0
npm notice To update run: npm install -g [email protected]
npm notice
$ npm start
> [email protected] start
> npm run build && node index.js
> [email protected] build
> webpack --mode production --module-bind js=babel-loader
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
node:internal/crypto/hash:79
this[kHandle] = new _Hash(algorithm, xofLen, algorithmId, getHashCache());
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:79:19)
at Object.createHash (node:crypto:139:10)
at module.exports (/Users/xfq/git/tower_game/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/Users/xfq/git/tower_game/node_modules/webpack/lib/NormalModule.js:417:16)
at handleParseError (/Users/xfq/git/tower_game/node_modules/webpack/lib/NormalModule.js:471:10)
at /Users/xfq/git/tower_game/node_modules/webpack/lib/NormalModule.js:503:5
at /Users/xfq/git/tower_game/node_modules/webpack/lib/NormalModule.js:358:12
at /Users/xfq/git/tower_game/node_modules/loader-runner/lib/LoaderRunner.js:373:3
at iterateNormalLoaders (/Users/xfq/git/tower_game/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
at iterateNormalLoaders (/Users/xfq/git/tower_game/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at /Users/xfq/git/tower_game/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at context.callback (/Users/xfq/git/tower_game/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at /Users/xfq/git/tower_game/node_modules/babel-loader/lib/index.js:59:71 {
opensslErrorStack: [
'error:03000086:digital envelope routines::initialization error',
'error:0308010C:digital envelope routines::unsupported'
],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v22.14.0
I'm using Node.js v22.14.0 + npm 10.9.2 + macOS 15.3.1.
The error looks like https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported .
It suggests that you may need to downgrade your Node.js version to v16. Have you tried doing that?
I tried and it worked, but ideally it should support the latest Node.js :)