We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9fd18f commit 56e986aCopy full SHA for 56e986a
test/parallel/test-release-npm.js
@@ -7,12 +7,13 @@ const path = require('path');
7
8
const releaseReg = /^v\d+\.\d+\.\d+$/;
9
10
-if (!releaseReg.test(process.version)) {
+// Npm requires crypto support.
11
+if (!releaseReg.test(process.version) || !common.hasCrypto) {
12
common.skip('This test is only for release builds');
13
}
14
15
{
- // Verify that npm does not print out a warning when executed
16
+ // Verify that npm does not print out a warning when executed.
17
18
const npmCli = path.join(__dirname, '../../deps/npm/bin/npm-cli.js');
19
const npmExec = child_process.spawnSync(process.execPath, [npmCli]);
0 commit comments