npm install --save @babel/preset-env

attempting †o run npm install --save @babel/preset-env. getting the following error:

`ikeshs-MBP:track_my_trek ikeshpack$ npm install --save @babel/preset-env
Unhandled rejection Error: EACCES: permission denied, open ‘/Users/ikeshpack/.npm/_cacache/index-v5/a3/6f/cb46f96b60f7fbcecb2071cd45b8f9a51f28aa83900011b7e87f4ae0a9e3’

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! https://npm.community

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ikeshpack/.npm/_logs/2019-07-29T16_29_05_904Z-debug.log
ikeshs-MBP:track_my_trek ikeshpack$ `

log:
0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', 1 verbose cli '/usr/local/bin/npm', 1 verbose cli 'install', 1 verbose cli '--save', 1 verbose cli '@babel/preset-env' ] 2 info using npm@6.9.0 3 info using node@v10.14.2 4 verbose npm-session e92f210472f1f274 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 http fetch GET 304 https://registry.npmjs.org/@babel%2fpreset-env 244ms (from cache) 8 silly pacote tag manifest for @babel/preset-env@latest fetched in 259ms 9 timing stage:loadCurrentTree Completed in 1442ms 10 silly install loadIdealTree 11 silly install cloneCurrentTreeToIdealTree 12 timing stage:loadIdealTree:cloneCurrentTree Completed in 6ms 13 silly install loadShrinkwrap 14 timing stage:loadIdealTree:loadShrinkwrap Completed in 503ms 15 silly install loadAllDepsIntoIdealTree 16 silly resolveWithNewModule @babel/preset-env@7.5.5 checking installable status 17 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-syntax-json-strings 68ms (from cache) 18 silly pacote range manifest for @babel/plugin-syntax-json-strings@^7.2.0 fetched in 71ms 19 silly resolveWithNewModule @babel/plugin-syntax-json-strings@7.2.0 checking installable status 20 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-proposal-async-generator-functions 199ms (from cache) 21 http fetch GET 304 https://registry.npmjs.org/@babel%2fhelper-module-imports 205ms (from cache) 22 silly pacote range manifest for @babel/plugin-proposal-async-generator-functions@^7.2.0 fetched in 209ms 23 silly resolveWithNewModule @babel/plugin-proposal-async-generator-functions@7.2.0 checking installable status 24 silly pacote range manifest for @babel/helper-module-imports@^7.0.0 fetched in 215ms 25 silly resolveWithNewModule @babel/helper-module-imports@7.0.0 checking installable status 26 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-proposal-dynamic-import 222ms (from cache) 27 silly pacote range manifest for @babel/plugin-proposal-dynamic-import@^7.5.0 fetched in 227ms 28 silly resolveWithNewModule @babel/plugin-proposal-dynamic-import@7.5.0 checking installable status 29 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-syntax-object-rest-spread 155ms (from cache) 30 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-proposal-json-strings 232ms (from cache) 31 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-syntax-async-generators 232ms (from cache) 32 silly pacote range manifest for @babel/plugin-syntax-object-rest-spread@^7.2.0 fetched in 161ms 33 silly resolveWithNewModule @babel/plugin-syntax-object-rest-spread@7.2.0 checking installable status 34 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-proposal-object-rest-spread 238ms (from cache) 35 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-syntax-dynamic-import 238ms (from cache) 36 silly pacote range manifest for @babel/plugin-proposal-json-strings@^7.2.0 fetched in 240ms 37 silly resolveWithNewModule @babel/plugin-proposal-json-strings@7.2.0 checking installable status 38 silly pacote range manifest for @babel/plugin-syntax-async-generators@^7.2.0 fetched in 244ms 39 silly resolveWithNewModule @babel/plugin-syntax-async-generators@7.2.0 checking installable status 40 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-proposal-optional-catch-binding 246ms (from cache) 41 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-proposal-unicode-property-regex 251ms (from cache) 42 silly pacote range manifest for @babel/plugin-proposal-object-rest-spread@^7.5.5 fetched in 254ms 43 silly resolveWithNewModule @babel/plugin-proposal-object-rest-spread@7.5.5 checking installable status 44 silly pacote range manifest for @babel/plugin-syntax-dynamic-import@^7.2.0 fetched in 258ms 45 silly resolveWithNewModule @babel/plugin-syntax-dynamic-import@7.2.0 checking installable status 46 silly pacote range manifest for @babel/plugin-proposal-optional-catch-binding@^7.2.0 fetched in 267ms 47 silly resolveWithNewModule @babel/plugin-proposal-optional-catch-binding@7.2.0 checking installable status 48 silly pacote range manifest for @babel/plugin-proposal-unicode-property-regex@^7.4.4 fetched in 269ms 49 silly resolveWithNewModule @babel/plugin-proposal-unicode-property-regex@7.4.4 checking installable status 50 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-syntax-optional-catch-binding 100ms (from cache) 51 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-arrow-functions 96ms (from cache) 52 silly pacote range manifest for @babel/plugin-syntax-optional-catch-binding@^7.2.0 fetched in 103ms 53 silly resolveWithNewModule @babel/plugin-syntax-optional-catch-binding@7.2.0 checking installable status 54 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-async-to-generator 87ms (from cache) 55 silly pacote range manifest for @babel/plugin-transform-arrow-functions@^7.2.0 fetched in 103ms 56 silly resolveWithNewModule @babel/plugin-transform-arrow-functions@7.2.0 checking installable status 57 silly pacote range manifest for @babel/plugin-transform-async-to-generator@^7.5.0 fetched in 93ms 58 silly resolveWithNewModule @babel/plugin-transform-async-to-generator@7.5.0 checking installable status 59 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-block-scoped-functions 99ms (from cache) 60 silly pacote range manifest for @babel/plugin-transform-block-scoped-functions@^7.2.0 fetched in 105ms 61 silly resolveWithNewModule @babel/plugin-transform-block-scoped-functions@7.2.0 checking installable status 62 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-block-scoping 119ms (from cache) 63 silly pacote range manifest for @babel/plugin-transform-block-scoping@^7.5.5 fetched in 122ms 64 silly resolveWithNewModule @babel/plugin-transform-block-scoping@7.5.5 checking installable status 65 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-classes 117ms (from cache) 66 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-computed-properties 113ms (from cache) 67 silly pacote range manifest for @babel/plugin-transform-classes@^7.5.5 fetched in 125ms 68 silly resolveWithNewModule @babel/plugin-transform-classes@7.5.5 checking installable status 69 silly pacote range manifest for @babel/plugin-transform-computed-properties@^7.2.0 fetched in 120ms 70 silly resolveWithNewModule @babel/plugin-transform-computed-properties@7.2.0 checking installable status 71 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-dotall-regex 111ms (from cache) 72 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-duplicate-keys 115ms (from cache) 73 silly pacote range manifest for @babel/plugin-transform-dotall-regex@^7.4.4 fetched in 121ms 74 silly resolveWithNewModule @babel/plugin-transform-dotall-regex@7.4.4 checking installable status 75 silly pacote range manifest for @babel/plugin-transform-duplicate-keys@^7.5.0 fetched in 125ms 76 silly resolveWithNewModule @babel/plugin-transform-duplicate-keys@7.5.0 checking installable status 77 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-destructuring 141ms (from cache) 78 silly pacote range manifest for @babel/plugin-transform-destructuring@^7.5.0 fetched in 147ms 79 silly resolveWithNewModule @babel/plugin-transform-destructuring@7.5.0 checking installable status 80 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-exponentiation-operator 103ms (from cache) 81 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-for-of 100ms (from cache) 82 silly pacote range manifest for @babel/plugin-transform-exponentiation-operator@^7.2.0 fetched in 107ms 83 silly resolveWithNewModule @babel/plugin-transform-exponentiation-operator@7.2.0 checking installable status 84 silly pacote range manifest for @babel/plugin-transform-for-of@^7.4.4 fetched in 105ms 85 silly resolveWithNewModule @babel/plugin-transform-for-of@7.4.4 checking installable status 86 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-function-name 106ms (from cache) 87 silly pacote range manifest for @babel/plugin-transform-function-name@^7.4.4 fetched in 112ms 88 silly resolveWithNewModule @babel/plugin-transform-function-name@7.4.4 checking installable status 89 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-literals 98ms (from cache) 90 silly pacote range manifest for @babel/plugin-transform-literals@^7.2.0 fetched in 103ms 91 silly resolveWithNewModule @babel/plugin-transform-literals@7.2.0 checking installable status 92 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-member-expression-literals 109ms (from cache) 93 silly pacote range manifest for @babel/plugin-transform-member-expression-literals@^7.2.0 fetched in 114ms 94 silly resolveWithNewModule @babel/plugin-transform-member-expression-literals@7.2.0 checking installable status 95 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-modules-commonjs 113ms (from cache) 96 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-modules-amd 121ms (from cache) 97 silly pacote range manifest for @babel/plugin-transform-modules-commonjs@^7.5.0 fetched in 120ms 98 silly resolveWithNewModule @babel/plugin-transform-modules-commonjs@7.5.0 checking installable status 99 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-modules-systemjs 110ms (from cache) 100 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-named-capturing-groups-regex 95ms (from cache) 101 silly pacote range manifest for @babel/plugin-transform-modules-amd@^7.5.0 fetched in 128ms 102 silly resolveWithNewModule @babel/plugin-transform-modules-amd@7.5.0 checking installable status 103 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-modules-umd 109ms (from cache) 104 silly pacote range manifest for @babel/plugin-transform-modules-systemjs@^7.5.0 fetched in 118ms 105 silly resolveWithNewModule @babel/plugin-transform-modules-systemjs@7.5.0 checking installable status 106 silly pacote range manifest for @babel/plugin-transform-named-capturing-groups-regex@^7.4.5 fetched in 104ms 107 silly resolveWithNewModule @babel/plugin-transform-named-capturing-groups-regex@7.4.5 checking installable status 108 silly pacote range manifest for @babel/plugin-transform-modules-umd@^7.2.0 fetched in 121ms 109 silly resolveWithNewModule @babel/plugin-transform-modules-umd@7.2.0 checking installable status 110 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-new-target 107ms (from cache) 111 silly pacote range manifest for @babel/plugin-transform-new-target@^7.4.4 fetched in 108ms 112 silly resolveWithNewModule @babel/plugin-transform-new-target@7.4.4 checking installable status 113 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-object-super 107ms (from cache) 114 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-parameters 99ms (from cache) 115 silly pacote range manifest for @babel/plugin-transform-object-super@^7.5.5 fetched in 110ms 116 silly resolveWithNewModule @babel/plugin-transform-object-super@7.5.5 checking installable status 117 silly pacote range manifest for @babel/plugin-transform-parameters@^7.4.4 fetched in 105ms 118 silly resolveWithNewModule @babel/plugin-transform-parameters@7.4.4 checking installable status 119 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-property-literals 96ms (from cache) 120 silly pacote range manifest for @babel/plugin-transform-property-literals@^7.2.0 fetched in 101ms 121 silly resolveWithNewModule @babel/plugin-transform-property-literals@7.2.0 checking installable status 122 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-regenerator 75ms (from cache) 123 silly pacote range manifest for @babel/plugin-transform-regenerator@^7.4.5 fetched in 78ms 124 silly resolveWithNewModule @babel/plugin-transform-regenerator@7.4.5 checking installable status 125 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-reserved-words 64ms (from cache) 126 silly pacote range manifest for @babel/plugin-transform-reserved-words@^7.2.0 fetched in 71ms 127 silly resolveWithNewModule @babel/plugin-transform-reserved-words@7.2.0 checking installable status 128 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-shorthand-properties 77ms (from cache) 129 silly pacote range manifest for @babel/plugin-transform-shorthand-properties@^7.2.0 fetched in 80ms 130 silly resolveWithNewModule @babel/plugin-transform-shorthand-properties@7.2.0 checking installable status 131 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-sticky-regex 77ms (from cache) 132 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-spread 82ms (from cache) 133 silly pacote range manifest for @babel/plugin-transform-sticky-regex@^7.2.0 fetched in 85ms 134 silly resolveWithNewModule @babel/plugin-transform-sticky-regex@7.2.0 checking installable status 135 silly pacote range manifest for @babel/plugin-transform-spread@^7.2.0 fetched in 90ms 136 silly resolveWithNewModule @babel/plugin-transform-spread@7.2.2 checking installable status 137 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-template-literals 85ms (from cache) 138 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-typeof-symbol 79ms (from cache) 139 silly pacote range manifest for @babel/plugin-transform-template-literals@^7.4.4 fetched in 90ms 140 silly resolveWithNewModule @babel/plugin-transform-template-literals@7.4.4 checking installable status 141 silly pacote range manifest for @babel/plugin-transform-typeof-symbol@^7.2.0 fetched in 83ms 142 silly resolveWithNewModule @babel/plugin-transform-typeof-symbol@7.2.0 checking installable status 143 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-unicode-regex 80ms (from cache) 144 silly pacote range manifest for @babel/plugin-transform-unicode-regex@^7.4.4 fetched in 82ms 145 silly resolveWithNewModule @babel/plugin-transform-unicode-regex@7.4.4 checking installable status 146 http fetch GET 304 https://registry.npmjs.org/core-js-compat 70ms (from cache) 147 http fetch GET 304 https://registry.npmjs.org/browserslist 82ms (from cache) 148 http fetch GET 304 https://registry.npmjs.org/js-levenshtein 66ms (from cache) 149 silly pacote range manifest for core-js-compat@^3.1.1 fetched in 75ms 150 silly resolveWithNewModule core-js-compat@3.1.4 checking installable status 151 silly pacote range manifest for browserslist@^4.6.0 fetched in 86ms 152 silly resolveWithNewModule browserslist@4.6.6 checking installable status 153 silly pacote range manifest for js-levenshtein@^1.1.3 fetched in 69ms 154 silly resolveWithNewModule js-levenshtein@1.1.6 checking installable status 155 http fetch GET 304 https://registry.npmjs.org/@babel%2fhelper-remap-async-to-generator 48ms (from cache) 156 silly pacote range manifest for @babel/helper-remap-async-to-generator@^7.1.0 fetched in 50ms 157 silly resolveWithNewModule @babel/helper-remap-async-to-generator@7.1.0 checking installable status 158 http fetch GET 304 https://registry.npmjs.org/@babel%2fhelper-annotate-as-pure 56ms (from cache) 159 silly pacote range manifest for @babel/helper-annotate-as-pure@^7.0.0 fetched in 58ms 160 silly resolveWithNewModule @babel/helper-annotate-as-pure@7.0.0 checking installable status 161 http fetch GET 304 https://registry.npmjs.org/@babel%2fhelper-wrap-function 59ms (from cache) 162 silly pacote range manifest for @babel/helper-wrap-function@^7.1.0 fetched in 60ms 163 silly resolveWithNewModule @babel/helper-wrap-function@7.2.0 checking installable status 164 http fetch GET 304 https://registry.npmjs.org/regexpu-core 58ms (from cache) 165 silly pacote range manifest for regexpu-core@^4.5.4 fetched in 60ms 166 silly resolveWithNewModule regexpu-core@4.5.4 checking installable status 167 http fetch GET 304 https://registry.npmjs.org/@babel%2fhelper-regex 62ms (from cache) 168 silly pacote range manifest for @babel/helper-regex@^7.4.4 fetched in 63ms 169 silly resolveWithNewModule @babel/helper-regex@7.5.5 checking installable status 170 http fetch GET 304 https://registry.npmjs.org/regenerate 69ms (from cache) 171 silly pacote range manifest for regenerate@^1.4.0 fetched in 72ms 172 silly resolveWithNewModule regenerate@1.4.0 checking installable status 173 http fetch GET 304 https://registry.npmjs.org/regjsgen 73ms (from cache) 174 http fetch GET 304 https://registry.npmjs.org/regenerate-unicode-properties 74ms (from cache) 175 http fetch GET 304 https://registry.npmjs.org/regjsparser 74ms (from cache) 176 http fetch GET 304 https://registry.npmjs.org/unicode-match-property-ecmascript 75ms (from cache) 177 silly pacote range manifest for regjsgen@^0.5.0 fetched in 77ms 178 silly resolveWithNewModule regjsgen@0.5.0 checking installable status 179 silly pacote range manifest for regenerate-unicode-properties@^8.0.2 fetched in 78ms 180 silly resolveWithNewModule regenerate-unicode-properties@8.1.0 checking installable status 181 silly pacote range manifest for unicode-match-property-ecmascript@^1.0.4 fetched in 78ms 182 silly resolveWithNewModule unicode-match-property-ecmascript@1.0.4 checking installable status 183 silly pacote range manifest for regjsparser@^0.6.0 fetched in 79ms 184 silly resolveWithNewModule regjsparser@0.6.0 checking installable status 185 http fetch GET 304 https://registry.npmjs.org/unicode-match-property-value-ecmascript 79ms (from cache) 186 silly pacote range manifest for unicode-match-property-value-ecmascript@^1.1.0 fetched in 80ms 187 silly resolveWithNewModule unicode-match-property-value-ecmascript@1.1.0 checking installable status 188 http fetch GET 304 https://registry.npmjs.org/jsesc 68ms (from cache) 189 timing npm Completed in 3523ms 190 error cb() never called! 191 error This is an error with npm itself. Please report this error at: 192 error <https://npm.community>

The underlying cause is hopefully fixed in v6.10.2: Release: 6.10.2

The manual fix for the past problem is:

sudo chown -R $USER ~/.npm

Then you can try your install again.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.