Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Observing unable to npm install watch #2639

Closed
ravikumar2000 opened this issue Apr 14, 2021 · 2 comments
Closed

Observing unable to npm install watch #2639

ravikumar2000 opened this issue Apr 14, 2021 · 2 comments

Comments

@ravikumar2000
Copy link

Describe the bug

Sample test

sampleTest.js

// Please add the sample test here

module.exports = {
  sampleTest: function(browser) {

  }
}

Run with command

$ nightwatch test/sampleTest.js --your-other-arguments-here

Verbose output

debug.log

<!-- Include the verbose output, if possible (run nightwatch with `--verbose` argument) -->

Configuration

nightwatch.json

{
  "your": { "config": "here" }
}

Your Environment

Executable Version
nightwatch --version VERSION
npm --version VERSION
yarn --version VERSION
node --version VERSION
Browser driver Version
NAME VERSION
OS Version
NAME VERSION
@ravikumar2000
Copy link
Author

Please find the debug log details
-vm-ravigr nightwatchjs_exporter]$ npm install nightwatch
npm ERR! Linux 4.14.35-1902.306.2.el7uek.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "nightwatch"
npm ERR! node v6.17.1
npm ERR! npm v3.10.10
npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE

npm ERR! unable to verify the first certificate
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /home/opc/nightwatch/nightwatcher/nightwatchjs_exporter/npm-debug.log
[opc@oci-vm-ravigr nightwatchjs_exporter]$ cat /home/opc/nightwatch/nightwatcher/nightwatchjs_exporter/npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', 'nightwatch' ]
2 info using npm@3.10.10
3 info using node@v6.17.1
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData nightwatch
8 silly fetchNamedPackageData nightwatch
9 silly mapToRegistry name nightwatch
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry https://registry.npmjs.org/
12 silly mapToRegistry data Result {
12 silly mapToRegistry raw: 'nightwatch',
12 silly mapToRegistry scope: null,
12 silly mapToRegistry escapedName: 'nightwatch',
12 silly mapToRegistry name: 'nightwatch',
12 silly mapToRegistry rawSpec: '',
12 silly mapToRegistry spec: 'latest',
12 silly mapToRegistry type: 'tag' }
13 silly mapToRegistry uri https://registry.npmjs.org/nightwatch
14 verbose request uri https://registry.npmjs.org/nightwatch
15 verbose request no auth needed
16 info attempt registry request try #1 at 11:44:47 AM
17 verbose request id 24d96004be835a8e
18 http request GET https://registry.npmjs.org/nightwatch
19 info retry will retry, error on last attempt: Error: unable to verify the first certificate
20 info attempt registry request try #2 at 11:44:57 AM
21 http request GET https://registry.npmjs.org/nightwatch
22 info retry will retry, error on last attempt: Error: unable to verify the first certificate
23 info attempt registry request try #3 at 11:45:57 AM
24 http request GET https://registry.npmjs.org/nightwatch
25 silly fetchPackageMetaData Error: unable to verify the first certificate
25 silly fetchPackageMetaData at Error (native)
25 silly fetchPackageMetaData at TLSSocket. (_tls_wrap.js:1092:38)
25 silly fetchPackageMetaData at emitNone (events.js:86:13)
25 silly fetchPackageMetaData at TLSSocket.emit (events.js:185:7)
25 silly fetchPackageMetaData at TLSSocket._finishInit (_tls_wrap.js:609:8)
25 silly fetchPackageMetaData at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:439:38)
25 silly fetchPackageMetaData error for nightwatch { Error: unable to verify the first certificate
25 silly fetchPackageMetaData at Error (native)
25 silly fetchPackageMetaData at TLSSocket. (_tls_wrap.js:1092:38)
25 silly fetchPackageMetaData at emitNone (events.js:86:13)
25 silly fetchPackageMetaData at TLSSocket.emit (events.js:185:7)
25 silly fetchPackageMetaData at TLSSocket._finishInit (_tls_wrap.js:609:8)
25 silly fetchPackageMetaData at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:439:38) code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' }
26 silly rollbackFailedOptional Starting
27 silly rollbackFailedOptional Finishing
28 silly runTopLevelLifecycles Finishing
29 silly install printInstalled
30 verbose stack Error: unable to verify the first certificate
30 verbose stack at Error (native)
30 verbose stack at TLSSocket. (_tls_wrap.js:1092:38)
30 verbose stack at emitNone (events.js:86:13)
30 verbose stack at TLSSocket.emit (events.js:185:7)
30 verbose stack at TLSSocket._finishInit (_tls_wrap.js:609:8)
30 verbose stack at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:439:38)
31 verbose cwd /home/opc/nightwatch/nightwatcher/nightwatchjs_exporter
32 error Linux 4.14.35-1902.306.2.el7uek.x86_64
33 error argv "/usr/bin/node" "/usr/bin/npm" "install" "nightwatch"
34 error node v6.17.1
35 error npm v3.10.10
36 error code UNABLE_TO_VERIFY_LEAF_SIGNATURE
37 error unable to verify the first certificate
38 error If you need help, you may report this error at:
38 error https://github.com/npm/npm/issues
39 verbose exit [ 1, true ]

@Dharin-shah
Copy link
Contributor

in your terminal please run
npm config set strict-ssl false

PS - you have quite old version of node, if possible please upgrade

@nightwatchjs nightwatchjs locked and limited conversation to collaborators Apr 14, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants