npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

internal/modules/cjs/loader.js:670 throw err; ^

What I Wanted to Do

Hi Guys,
altough i try to install consolidate and more and keepin the last version of npm, this message was resend C:>npm i consolidate
npm ERR! error:0909006C:PEM routines:get_name:no start line

What Happened Instead

Nothing, however when i excute my script .js, this message show me an incident with the internal module cjs :smile:

node chatwithme
throw err;

Error: Cannot find module

Reproduction Steps


0 info it worked if it ends with ok
1 verbose cli [ ‘C:\Program Files\nodejs\node.exe’,
1 verbose cli ‘C:\Users\MASTER\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js’,
1 verbose cli ‘i’,
1 verbose cli ‘core-utils-is’ ]
2 info using npm@6.10.3
3 info using node@v11.14.0
4 verbose npm-session d0cc35e12dc4cf42
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData error for core-utils-is@latest error:0909006C:PEM routines:get_name:no start line
8 timing stage:rollbackFailedOptional Completed in 1ms
9 timing stage:runTopLevelLifecycles Completed in 133ms
10 verbose stack Error: error:0909006C:PEM routines:get_name:no start line
10 verbose stack at Object.createSecureContext (_tls_common.js:155:17)
10 verbose stack at Object.connect (_tls_wrap.js:1259:48)
10 verbose stack at HttpsAgent.createConnection (https.js:120:22)
10 verbose stack at HttpsAgent.createSocket (C:\Users\MASTER\AppData\Roaming\npm\node_modules\npm\node_modules\agentkeepalive\lib_http_agent.js:265:26)
10 verbose stack at HttpsAgent.createSocket (C:\Users\MASTER\AppData\Roaming\npm\node_modules\npm\node_modules\agentkeepalive\lib\agent.js:77:11)
10 verbose stack at HttpsAgent.addRequest (C:\Users\MASTER\AppData\Roaming\npm\node_modules\npm\node_modules\agentkeepalive\lib_http_agent.js:239:10)
10 verbose stack at new ClientRequest (_http_client.js:261:16)
10 verbose stack at request (https.js:303:10)
10 verbose stack at fetch.Promise (C:\Users\MASTER\AppData\Roaming\npm\node_modules\npm\node_modules\node-fetch-npm\src\index.js:54:17)
10 verbose stack at new Promise ()
10 verbose stack at fetch (C:\Users\MASTER\AppData\Roaming\npm\node_modules\npm\node_modules\node-fetch-npm\src\index.js:41:10)
10 verbose stack at retry (C:\Users\MASTER\AppData\Roaming\npm\node_modules\npm\node_modules\make-fetch-happen\index.js:332:14)
10 verbose stack at C:\Users\MASTER\AppData\Roaming\npm\node_modules\npm\node_modules\promise-retry\index.js:29:24
11 verbose cwd C:
12 verbose Windows_NT 10.0.17134
13 verbose argv “C:\Program Files\nodejs\node.exe” “C:\Users\MASTER\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js” “i” “core-utils-is”
14 verbose node v11.14.0
15 verbose npm v6.10.3
16 error error:0909006C:PEM routines:get_name:no start line
17 verbose exit [ 1, true ]

Platform Info

$ npm --versions
<!-- paste output here -->
$ node -p process.platform
<!-- paste output here -->

Have you changed the default npm registry, or are you behind a proxy?

The error is related to processing SSL certificates. It has been reported a few times on this forum, but no confirmed answers.