Skip to content

Instantly share code, notes, and snippets.

@colinrotherham
Created June 1, 2017 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colinrotherham/ce6d21ba35271e356f9255a5c12c3d94 to your computer and use it in GitHub Desktop.
Save colinrotherham/ce6d21ba35271e356f9255a5c12c3d94 to your computer and use it in GitHub Desktop.
Running npm@5.0.1 behind proxy with self-signed root CA certificate
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/8.0.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install' ]
2 info using npm@5.0.1
3 info using node@v8.0.0
4 silly install runPreinstallTopLevelLifecycles
5 silly preinstall @scope/project-name@0.1.11
6 info lifecycle @scope/project-name@0.1.11~preinstall: @scope/project-name@0.1.11
7 silly lifecycle @scope/project-name@0.1.11~preinstall: no script for preinstall, continuing
8 silly install loadCurrentTree
9 silly install readLocalPackageData
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 silly install loadShrinkwrap
13 silly install loadAllDepsIntoIdealTree
14 silly fetchPackageMetaData error for babel-core@^7.0.0-alpha.12 request to https://registry.domain.co.uk/repository/internet-npm/babel-core failed, reason: unable to verify the first certificate
15 silly fetchPackageMetaData error for autoprefixer@^7.1.0 request to https://registry.domain.co.uk/repository/internet-npm/autoprefixer failed, reason: unable to verify the first certificate
16 silly fetchPackageMetaData error for babel-preset-env@^1.5.0 request to https://registry.domain.co.uk/repository/internet-npm/babel-preset-env failed, reason: unable to verify the first certificate
17 silly fetchPackageMetaData error for babel-loader@^7.0.0 request to https://registry.domain.co.uk/repository/internet-npm/babel-loader failed, reason: unable to verify the first certificate
18 silly fetchPackageMetaData error for breakpoint-sass@^2.7.1 request to https://registry.domain.co.uk/repository/internet-npm/breakpoint-sass failed, reason: unable to verify the first certificate
19 silly fetchPackageMetaData error for babili-webpack-plugin@^0.1.1 request to https://registry.domain.co.uk/repository/internet-npm/babili-webpack-plugin failed, reason: unable to verify the first certificate
20 silly fetchPackageMetaData error for browser-sync@^2.18.8 request to https://registry.domain.co.uk/repository/internet-npm/browser-sync failed, reason: unable to verify the first certificate
21 silly fetchPackageMetaData error for css-mqpacker@^6.0.0 request to https://registry.domain.co.uk/repository/internet-npm/css-mqpacker failed, reason: unable to verify the first certificate
22 silly fetchPackageMetaData error for cross-env@^5.0.0 request to https://registry.domain.co.uk/repository/internet-npm/cross-env failed, reason: unable to verify the first certificate
23 silly fetchPackageMetaData error for csswring@^6.0.0 request to https://registry.domain.co.uk/repository/internet-npm/csswring failed, reason: unable to verify the first certificate
24 silly fetchPackageMetaData error for del@^2.2.2 request to https://registry.domain.co.uk/repository/internet-npm/del failed, reason: unable to verify the first certificate
25 silly fetchPackageMetaData error for eslint@^3.12.2 request to https://registry.domain.co.uk/repository/internet-npm/eslint failed, reason: unable to verify the first certificate
26 silly fetchPackageMetaData error for eslint-config-semistandard@^11.0.0 request to https://registry.domain.co.uk/repository/internet-npm/eslint-config-semistandard failed, reason: unable to verify the first certificate
27 silly fetchPackageMetaData error for eslint-plugin-import@^2.2.0 request to https://registry.domain.co.uk/repository/internet-npm/eslint-plugin-import failed, reason: unable to verify the first certificate
28 silly fetchPackageMetaData error for eslint-plugin-json@^1.2.0 request to https://registry.domain.co.uk/repository/internet-npm/eslint-plugin-json failed, reason: unable to verify the first certificate
29 silly fetchPackageMetaData error for eslint-config-standard@^10.2.1 request to https://registry.domain.co.uk/repository/internet-npm/eslint-config-standard failed, reason: unable to verify the first certificate
30 silly fetchPackageMetaData error for eslint-plugin-node@^4.2.2 request to https://registry.domain.co.uk/repository/internet-npm/eslint-plugin-node failed, reason: unable to verify the first certificate
31 silly fetchPackageMetaData error for eslint-plugin-promise@^3.4.0 request to https://registry.domain.co.uk/repository/internet-npm/eslint-plugin-promise failed, reason: unable to verify the first certificate
32 silly fetchPackageMetaData error for eslint-plugin-standard@^3.0.1 request to https://registry.domain.co.uk/repository/internet-npm/eslint-plugin-standard failed, reason: unable to verify the first certificate
33 silly fetchPackageMetaData error for gulp@^3.9.1 request to https://registry.domain.co.uk/repository/internet-npm/gulp failed, reason: unable to verify the first certificate
34 silly fetchPackageMetaData error for gulp-changed@^3.1.0 request to https://registry.domain.co.uk/repository/internet-npm/gulp-changed failed, reason: unable to verify the first certificate
35 silly fetchPackageMetaData error for gulp-babel@^6.1.2 request to https://registry.domain.co.uk/repository/internet-npm/gulp-babel failed, reason: unable to verify the first certificate
36 silly fetchPackageMetaData error for gulp-batch@^1.0.5 request to https://registry.domain.co.uk/repository/internet-npm/gulp-batch failed, reason: unable to verify the first certificate
37 silly fetchPackageMetaData error for gulp-cached@^1.1.1 request to https://registry.domain.co.uk/repository/internet-npm/gulp-cached failed, reason: unable to verify the first certificate
38 silly fetchPackageMetaData error for gulp-debug@^3.1.0 request to https://registry.domain.co.uk/repository/internet-npm/gulp-debug failed, reason: unable to verify the first certificate
39 silly fetchPackageMetaData error for gulp-eslint@^3.0.1 request to https://registry.domain.co.uk/repository/internet-npm/gulp-eslint failed, reason: unable to verify the first certificate
40 silly fetchPackageMetaData error for gulp-nodemon@^2.2.1 request to https://registry.domain.co.uk/repository/internet-npm/gulp-nodemon failed, reason: unable to verify the first certificate
41 silly fetchPackageMetaData error for gulp-if@^2.0.2 request to https://registry.domain.co.uk/repository/internet-npm/gulp-if failed, reason: unable to verify the first certificate
42 silly fetchPackageMetaData error for gulp-postcss@^7.0.0 request to https://registry.domain.co.uk/repository/internet-npm/gulp-postcss failed, reason: unable to verify the first certificate
43 silly fetchPackageMetaData error for gulp-preservetime@^1.2.1 request to https://registry.domain.co.uk/repository/internet-npm/gulp-preservetime failed, reason: unable to verify the first certificate
44 silly fetchPackageMetaData error for gulp-remember@^0.3.1 request to https://registry.domain.co.uk/repository/internet-npm/gulp-remember failed, reason: unable to verify the first certificate
45 silly fetchPackageMetaData error for gulp-rename@~1.2.2 request to https://registry.domain.co.uk/repository/internet-npm/gulp-rename failed, reason: unable to verify the first certificate
46 silly fetchPackageMetaData error for gulp-sass@^3.0.0 request to https://registry.domain.co.uk/repository/internet-npm/gulp-sass failed, reason: unable to verify the first certificate
47 silly fetchPackageMetaData error for gulp-sourcemaps@^2.2.1 request to https://registry.domain.co.uk/repository/internet-npm/gulp-sourcemaps failed, reason: unable to verify the first certificate
48 silly fetchPackageMetaData error for gulp-stylelint@^3.7.0 request to https://registry.domain.co.uk/repository/internet-npm/gulp-stylelint failed, reason: unable to verify the first certificate
49 silly fetchPackageMetaData error for gulp-watch@~4.3.11 request to https://registry.domain.co.uk/repository/internet-npm/gulp-watch failed, reason: unable to verify the first certificate
50 silly fetchPackageMetaData error for htmlhint-stylish@^1.0.3 request to https://registry.domain.co.uk/repository/internet-npm/htmlhint-stylish failed, reason: unable to verify the first certificate
51 silly fetchPackageMetaData error for normalize-scss@^7.0.0 request to https://registry.domain.co.uk/repository/internet-npm/normalize-scss failed, reason: unable to verify the first certificate
52 silly fetchPackageMetaData error for stylelint-scss@^1.4.1 request to https://registry.domain.co.uk/repository/internet-npm/stylelint-scss failed, reason: unable to verify the first certificate
53 silly fetchPackageMetaData error for vinyl-named@^1.1.0 request to https://registry.domain.co.uk/repository/internet-npm/vinyl-named failed, reason: unable to verify the first certificate
54 silly fetchPackageMetaData error for run-sequence@^1.2.2 request to https://registry.domain.co.uk/repository/internet-npm/run-sequence failed, reason: unable to verify the first certificate
55 silly fetchPackageMetaData error for webpack@^2.2.1 request to https://registry.domain.co.uk/repository/internet-npm/webpack failed, reason: unable to verify the first certificate
56 silly fetchPackageMetaData error for webpack-stream@^3.2.0 request to https://registry.domain.co.uk/repository/internet-npm/webpack-stream failed, reason: unable to verify the first certificate
57 silly fetchPackageMetaData error for @frctl/fractal@^1.1.4 request to https://registry.domain.co.uk/repository/internet-npm/@frctl%2ffractal failed, reason: unable to verify the first certificate
58 silly fetchPackageMetaData error for @frctl/mandelbrot@^1.1.0 request to https://registry.domain.co.uk/repository/internet-npm/@frctl%2fmandelbrot failed, reason: unable to verify the first certificate
59 silly fetchPackageMetaData error for @frctl/nunjucks@^1.0.3 request to https://registry.domain.co.uk/repository/internet-npm/@frctl%2fnunjucks failed, reason: unable to verify the first certificate
60 silly fetchPackageMetaData error for pm2@^2.4.6 request to https://registry.domain.co.uk/repository/internet-npm/pm2 failed, reason: unable to verify the first certificate
61 silly fetchPackageMetaData error for source-map-support@^0.4.14 request to https://registry.domain.co.uk/repository/internet-npm/source-map-support failed, reason: unable to verify the first certificate
62 silly fetchPackageMetaData error for @frctl/nunjucks@^1.0.3 request to https://registry.domain.co.uk/repository/internet-npm/@frctl%2fnunjucks failed, reason: unable to verify the first certificate
63 silly fetchPackageMetaData error for @frctl/fractal@^1.1.4 request to https://registry.domain.co.uk/repository/internet-npm/@frctl%2ffractal failed, reason: unable to verify the first certificate
64 silly fetchPackageMetaData error for pm2@^2.4.6 request to https://registry.domain.co.uk/repository/internet-npm/pm2 failed, reason: unable to verify the first certificate
65 silly fetchPackageMetaData error for @frctl/mandelbrot@^1.1.0 request to https://registry.domain.co.uk/repository/internet-npm/@frctl%2fmandelbrot failed, reason: unable to verify the first certificate
66 silly fetchPackageMetaData error for source-map-support@^0.4.14 request to https://registry.domain.co.uk/repository/internet-npm/source-map-support failed, reason: unable to verify the first certificate
67 verbose type system
68 verbose stack FetchError: request to https://registry.domain.co.uk/repository/internet-npm/@frctl%2fnunjucks failed, reason: unable to verify the first certificate
68 verbose stack at ClientRequest.req.on.err (/usr/local/lib/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/node-fetch-npm/src/index.js:68:14)
68 verbose stack at emitOne (events.js:115:13)
68 verbose stack at ClientRequest.emit (events.js:210:7)
68 verbose stack at TLSSocket.socketErrorListener (_http_client.js:399:9)
68 verbose stack at emitOne (events.js:115:13)
68 verbose stack at TLSSocket.emit (events.js:210:7)
68 verbose stack at emitErrorNT (internal/streams/destroy.js:62:8)
68 verbose stack at _combinedTickCallback (internal/process/next_tick.js:102:11)
68 verbose stack at process._tickCallback (internal/process/next_tick.js:161:9)
69 verbose cwd /Users/colinr/Sites/project-name
70 verbose Darwin 16.6.0
71 verbose argv "/usr/local/Cellar/node/8.0.0/bin/node" "/usr/local/bin/npm" "install"
72 verbose node v8.0.0
73 verbose npm v5.0.1
74 error code UNABLE_TO_VERIFY_LEAF_SIGNATURE
75 error errno UNABLE_TO_VERIFY_LEAF_SIGNATURE
76 error request to https://registry.domain.co.uk/repository/internet-npm/@frctl%2fnunjucks failed, reason: unable to verify the first certificate
77 verbose exit [ 1, true ]
@colinrotherham
Copy link
Author

colinrotherham commented Jun 1, 2017

Our .npmrc file contains:

strict-ssl=false
cafile=/path/to/certificates/cacert.pem

Under npm@4.6.1 this allowed our self-signed root CA certificate to be accepted.
Under npm@5.0.1 this throws an UNABLE_TO_VERIFY_LEAF_SIGNATURE error.

@finessed
Copy link

finessed commented Jan 3, 2018

Hi Colin, was a solution found for this issue? We are also using 5.5.1 and getting the same issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment