Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install error #3052

Open
usaidsherwani opened this issue Jun 7, 2023 · 3 comments
Open

npm install error #3052

usaidsherwani opened this issue Jun 7, 2023 · 3 comments

Comments

@usaidsherwani
Copy link

usaidsherwani commented Jun 7, 2023

having these errors while doing npm install

`
[email protected] prepublish
python build.py && webpack

Using local compiler: google-closure-compiler.cmd ...

The command line is too long.
UNKNOWN ERROR
SUCCESS: blockly_uncompressed_horizontal.js
SUCCESS: blockly_uncompressed_vertical.js
The command line is too long.
UNKNOWN ERROR
SUCCESS: blocks_compressed_horizontal.js
Size changed from 39 KB to 19 KB (49%).
SUCCESS: blocks_compressed_vertical.js
Size changed from 179 KB to 90 KB (50%).
SUCCESS: blocks_compressed.js
Size changed from 22 KB to 8 KB (37%).
node:internal/crypto/hash:71
this[kHandle] = new _Hash(algorithm, xofLen);
^

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 (F:\B\scratch-blocks-develop\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (F:\B\scratch-blocks-develop\node_modules\webpack\lib\NormalModule.js:417:16)
at handleParseError (F:\B\scratch-blocks-develop\node_modules\webpack\lib\NormalModule.js:471:10)
at F:\B\scratch-blocks-develop\node_modules\webpack\lib\NormalModule.js:503:5
at F:\B\scratch-blocks-develop\node_modules\webpack\lib\NormalModule.js:358:12
at F:\B\scratch-blocks-develop\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (F:\B\scratch-blocks-develop\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
at Array. (F:\B\scratch-blocks-develop\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
at Storage.finished (F:\B\scratch-blocks-develop\node_modules\webpack\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
at F:\B\scratch-blocks-develop\node_modules\webpack\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
at F:\B\scratch-blocks-develop\node_modules\graceful-fs\graceful-fs.js:123:16
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v18.16.0
npm ERR! code 1
npm ERR! path F:\B\scratch-blocks-develop
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c python build.py && webpack
`

@CST1229
Copy link

CST1229 commented Jun 7, 2023

Applying #2138's changes to build.py makes it work for me, try doing that.

@alexcui03
Copy link

set environment variable NODE_OPTIONS to --openssl-legacy-provider

@zhaohao0305
Copy link

have you resolved it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants