iamkun / iamkun/tower_game

Cannot run the game

Open
#29 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.6k
Forks
448
PR merge metrics
No merged PRs in 30d

Description

I can't run the game:

```
$ npm install
npm warn deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm warn deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm warn deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm warn deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm warn deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm warn deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm warn deprecated chokidar@2.1.8: 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 npm@11.2.0
npm notice
```

```
$ npm start
> tower_game@1.0.0 start
> npm run build && node index.js

> tower_game@1.0.0 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 .

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.