I am a regular react user and usually use create-react-app but from this morning it is not working.
I have checked the npm, it is installed and fine. I have checked that create-react-app is globally installed on my system. The error is coming with some JSON file.
Versions installed on my system:
node -v
v9.0.0
$ npm -v
5.5.1
I have attached the log file below, I'm attaching log file from where the error comes first:
917 http fetch GET 200 https://registry.npmjs.org/babel-plugin-transform-es2015-unicode-regex 19ms (from cache)
918 silly fetchPackageMetaData error for babel-plugin-transform-es2015-unicode-regex#^6.22.0 Unexpected end of JSON input while parsing near '....7":{"name":"babel-pl'
919 silly pacote range manifest for babel-plugin-transform-es2015-sticky-regex#^6.22.0 fetched in 25ms
920 silly resolveWithNewModule babel-plugin-transform-es2015-sticky-regex#6.24.1 checking installable status
921 silly pacote range manifest for babel-plugin-transform-es2015-template-literals#^6.22.0 fetched in 24ms
922 silly resolveWithNewModule babel-plugin-transform-es2015-template-literals#6.22.0 checking installable status
923 silly pacote range manifest for babel-plugin-transform-exponentiation-operator#^6.22.0 fetched in 23ms
924 silly resolveWithNewModule babel-plugin-transform-exponentiation-operator#6.24.1 checking installable status
925 silly pacote range manifest for babel-plugin-transform-es2015-typeof-symbol#^6.23.0 fetched in 24ms
926 silly resolveWithNewModule babel-plugin-transform-es2015-typeof-symbol#6.23.0 checking installable status
927 verbose stack SyntaxError: Unexpected end of JSON input while parsing near '....7":{"name":"babel-pl'
927 verbose stack at JSON.parse (<anonymous>)
927 verbose stack at parseJson (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\node_modules\json-parse-better-errors\index.js:7:17)
927 verbose stack at consumeBody.call.then.buffer (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\src\body.js:96:50)
927 verbose stack at <anonymous>
927 verbose stack at process._tickCallback (internal/process/next_tick.js:188:7)
928 verbose cwd C:\Users\ashve\Desktop\Startup\startup
929 verbose Windows_NT 10.0.17134
930 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "--save-exact" "--loglevel" "error" "react" "react-dom" "react-scripts"
931 verbose node v9.0.0
932 verbose npm v5.5.1
933 error Unexpected end of JSON input while parsing near '....7":{"name":"babel-pl'
934 verbose exit [ 1, true ]
I saw you're using Windows. Try to clean the cache.
npm cache clean --force
or
Goto %appdata%\npm-cache and check if the directory is clean or not. If not, delete all file from the directory manually.
Now try create-react-app yourAppName
Related
While installing angular on my machine I am getting the below error. Uninstall and installed Node multiple times. But it is not helping. I have given the error log below. Can anyone help me in sorting this?
3 silly resolveWithNewModule universal-analytics#0.4.20 checking installable status
324 silly pacote version manifest for uuid#7.0.2 fetched in 298ms
325 silly resolveWithNewModule uuid#7.0.2 checking installable status
326 timing stage:rollbackFailedOptional Completed in 2ms
327 timing stage:runTopLevelLifecycles Completed in 9824ms
328 verbose stack Error: UNKNOWN: unknown error, open 'C:\Users\Shally.BBYBSDC\AppData\Roaming\npm-cache\_cacache\index-v5\1f\85\3e0b21cc5deb10a0dc51ed6dace9f5ae0f08f66b5c064b262517165cfa2f'
329 verbose cwd C:\Users\Shally.BBYBSDC
330 verbose Windows_NT 10.0.18362
331 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "#angular/cli"
332 verbose node v14.4.0
333 verbose npm v6.14.5
334 error code UNKNOWN
335 error syscall open
336 error path C:\Users\Shally.BBYBSDC\AppData\Roaming\npm-cache\_cacache\index-v5\1f\85\3e0b21cc5deb10a0dc51ed6dace9f5ae0f08f66b5c064b262517165cfa2f
337 error errno -4094
338 error UNKNOWN: unknown error, open 'C:\Users\Shally.BBYBSDC\AppData\Roaming\npm-cache\_cacache\index-v5\1f\85\3e0b21cc5deb10a0dc51ed6dace9f5ae0f08f66b5c064b262517165cfa2f'
339 verbose exit [ -4094, true ]
On executing
npm install -g #aws-amplify/cli
It results in
npm ERR! Maximum call stack size exceeded
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Nashif Alam\AppData\Roaming\npm-cache\_logs\2020-04-20T17_44_57_963Z-debug.log
Here is the Log output
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\Nashif Alam\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli '#aws-amplify/cli'
1 verbose cli ]
2 info using npm#6.14.4
3 info using node#v12.16.2
4 verbose npm-session 48145273415ef01a
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 304 https://registry.npmjs.org/#aws-amplify%2fcli 6012ms (from cache)
8 silly pacote tag manifest for #aws-amplify/cli#latest fetched in 6185ms
9 timing stage:loadCurrentTree Completed in 6274ms
//Removed the rest of the log because it seemed useless in this context
916 silly resolveWithNewModule param-case#3.0.3 checking installable status
917 silly pacote version manifest for upper-case#2.0.1 fetched in 8ms
918 silly resolveWithNewModule upper-case#2.0.1 checking installable status
919 http fetch GET 200 https://registry.npmjs.org/#ardatan%2fgraphql-tools 1713ms
920 http fetch GET 200 https://registry.npmjs.org/#ardatan/graphql-tools/-/graphql-tools-4.1.0.tgz 5735ms
921 silly pacote version manifest for #ardatan/graphql-tools#4.1.0 fetched in 7453ms
922 silly resolveWithNewModule #ardatan/graphql-tools#4.1.0 checking installable status
923 silly pacote range manifest for dot-case#^3.0.3 fetched in 2ms
924 silly resolveWithNewModule dot-case#3.0.3 checking installable status
925 silly pacote version manifest for #graphql-toolkit/common#0.9.7 fetched in 5ms
926 silly resolveWithNewModule #graphql-toolkit/common#0.9.7 checking installable status
927 silly fetchPackageMetaData error for relay-compiler#8.0.0 Response timeout while trying to fetch https://registry.npmjs.org/relay-compiler (over 30000ms)
928 verbose stack RangeError: Maximum call stack size exceeded
928 verbose stack at RegExp.test (<anonymous>)
928 verbose stack at isDepOptional (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:428:45)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:437:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
929 verbose cwd C:\Users\Nashif Alam
930 verbose Windows_NT 10.0.18363
931 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Nashif Alam\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "#aws-amplify/cli"
932 verbose node v12.16.2
933 verbose npm v6.14.4
934 error Maximum call stack size exceeded
935 verbose exit [ 1, true ]
npm version is 6.14.4
and node version is v12.16.2
I tried installing node 10, still same errors
Moreover, every time the log is mostly stuck in Response timeout while trying to fetch https://registry.npmjs.org/**Different link everytime**
Using the following command worked for me
npm cache clean --force
I figured out an answer to the problem, which probably lies with Nodejs version 12.16 and many other earlier versions like 5.0 and 10; But using version 13.13 solved the problem and the command run with no issues.
For me the log looked like this:
// ... skipping some deprecation warnings
> core-js#3.6.5 postinstall /root/.nvm/versions/node/v14.10.0/lib/node_modules/#aws-amplify/cli/node_modules/amplify-graphql-types-generator/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
sh: 1: node: Permission denied
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#~2.1.2 (node_modules/#aws-amplify/cli/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! Maximum call stack size exceeded
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-09-10T14_10_28_397Z-debug.log
Note sh: 1: node: Permission denied that led me to https://forum.vuejs.org/t/cannot-install-vue-cli-permission-error-in-require-postinstall/82017/7
I had to add --unsafe-perm to the install command and run it as root (I was already root in WSL):
npm install -g --unsafe-perm #aws-amplify/cli
I am running the installation of JHipster:
npm install -g generator-jhipster
and got the following error:
npm ERR! Unexpected end of JSON input while parsing near '...^0.1.7","karma-ie-lau'
my system versions are:
npm -version ; 6.4.1
java -version ; 1.8.0_112
git --version ; 2.17.1.window.2
mvn -version ; 3.6.1
my log file is as below :
113 silly pacote version manifest for jhipster-core#6.0.5 fetched in 1565ms
114 silly resolveWithNewModule jhipster-core#6.0.5 checking installable status
115 http fetch GET 200 https://registry.npmjs.org/glob 1979858ms
116 silly fetchPackageMetaData error for glob#7.1.3 Unexpected end of JSON input while parsing near '...04ddd01e","tarball":"'
117 http fetch GET 200 https://registry.npmjs.org/chalk 1979867ms
118 silly fetchPackageMetaData error for chalk#2.4.2 Unexpected end of JSON input while parsing near '...==","shasum":"3f73c2b'
119 timing stage:rollbackFailedOptional Completed in 1ms
120 timing stage:runTopLevelLifecycles Completed in 1984843ms
121 verbose stack SyntaxError: Unexpected end of JSON input while parsing near '...04ddd01e","tarball":"'
121 verbose stack at JSON.parse (<anonymous>)
121 verbose stack at parseJson (C:\ProgramFiles\nodejs\node_modules\npm\node_modules\json-parse-better-errors\index.js:7:17)
121 verbose stack at consumeBody.call.then.buffer (C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\body.js:96:50)
121 verbose stack at <anonymous>
121 verbose stack at process._tickCallback (internal/process/next_tick.js:189:7)
122 verbose cwd C:\jhipster
123 verbose Windows_NT 6.1.7601
124 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "generator-jhipster"
125 verbose node v8.16.1
126 verbose npm v6.4.1
127 error Unexpected end of JSON input while parsing near '...04ddd01e","tarball":"'
128 verbose exit [ 1, true ]
I really need some help or hints on how this can be handled.
Thank you and best regards,
Alvin
I have an Artifactory NPM repo named product_release_npm, with anonymous access disabled.
At the project level, I have an .npmrc file with the following content :
#luciad:registry=https://[DOMAIN]/artifactory/api/npm/product_release_npm/
At the user level, I have an .npmrc file with the following content :
//[DOMAIN]/artifactory/api/npm/product_thirdparty_npm/:_authToken=[AUTH_TOKEN]
//[DOMAIN]/artifactory/api/npm/product_release_npm/:_authToken=[AUTH_TOKEN]
My project's package.json file looks like this :
{
"dependencies": {
"#luciad/ria-core": "^2019.0"
}
}
If I do an npm install with NPM 4.2.0 or lower, I'm able to install this repo succesfully.
If I try the same thing with NPM 5.0.0 or higher, I'm unable to install this repo and get a 404 error.
In some versions of NPM, I'm also getting a 403 error.
Here's the log when try this with NPM 5.6.0, on a Linux machine :
0 info it worked if it ends with ok
1 verbose cli [ '/home/release/nodejs/node-v8.11.1-linux-x64/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install' ]
2 info using npm#5.6.0
3 info using node#v8.11.1
4 verbose npm-session 63d1960eac6e1e9a
5 silly install runPreinstallTopLevelLifecycles
6 silly preinstall release
7 info lifecycle #~preinstall: #
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 http fetch GET 200 https://[DOMAIN]/artifactory/api/npm/product_release_npm/#luciad%2fria-core 334ms
15 http fetch GET 404 https://[DOMAIN]:443/artifactory/api/npm/product_release_npm/#luciad/ria-core/-/#luciad/ria-core-2019.0.1.tgz 32ms
16 silly fetchPackageMetaData error for #luciad/ria-core#^2019.0 404 Not Found: #luciad/ria-core#^2019.0
17 http fetch GET 404 https://[DOMAIN]:443/artifactory/api/npm/product_release_npm/#luciad/ria-core/-/#luciad/ria-core-2019.0.1.tgz 9ms
18 silly fetchPackageMetaData error for #luciad/ria-core#^2019.0 404 Not Found: #luciad/ria-core#^2019.0
19 silly saveTree release
20 verbose stack Error: 404 Not Found: #luciad/ria-core#^2019.0
20 verbose stack at fetch.then.res (/home/release/nodejs/node-v8.11.1-linux-x64/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/fetch.js:42:19)
20 verbose stack at tryCatcher (/home/release/nodejs/node-v8.11.1-linux-x64/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
20 verbose stack at Promise._settlePromiseFromHandler (/home/release/nodejs/node-v8.11.1-linux-x64/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
20 verbose stack at Promise._settlePromise (/home/release/nodejs/node-v8.11.1-linux-x64/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)
20 verbose stack at Promise._settlePromise0 (/home/release/nodejs/node-v8.11.1-linux-x64/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
20 verbose stack at Promise._settlePromises (/home/release/nodejs/node-v8.11.1-linux-x64/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)
20 verbose stack at Async._drainQueue (/home/release/nodejs/node-v8.11.1-linux-x64/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:133:16)
20 verbose stack at Async._drainQueues (/home/release/nodejs/node-v8.11.1-linux-x64/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:143:10)
20 verbose stack at Immediate.Async.drainQueues (/home/release/nodejs/node-v8.11.1-linux-x64/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:17:14)
20 verbose stack at runCallback (timers.js:794:20)
20 verbose stack at tryOnImmediate (timers.js:752:5)
20 verbose stack at processImmediate [as _immediateCallback] (timers.js:729:5)
21 verbose cwd /home/release/Desktop/artifactory/release
22 verbose Linux 4.15.0-65-generic
23 verbose argv "/home/release/nodejs/node-v8.11.1-linux-x64/bin/node" "/usr/local/bin/npm" "install"
24 verbose node v8.11.1
25 verbose npm v5.6.0
26 error code E404
27 error 404 Not Found: #luciad/ria-core#^2019.0
28 verbose exit [ 1, true ]
Here's the log when try this with NPM 6.9.0, on a Windows machine :
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install' ]
2 info using npm#6.9.0
3 info using node#v10.16.3
4 verbose npm-session e99caa5e8a2881d2
5 silly install runPreinstallTopLevelLifecycles
6 silly preinstall release
7 info lifecycle #~preinstall: #
8 silly install loadCurrentTree
9 silly install readLocalPackageData
10 timing stage:loadCurrentTree Completed in 13ms
11 silly install loadIdealTree
12 silly install cloneCurrentTreeToIdealTree
13 timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
14 silly install loadShrinkwrap
15 timing stage:loadIdealTree:loadShrinkwrap Completed in 2ms
16 silly install loadAllDepsIntoIdealTree
17 http fetch GET 304 https://[DOMAIN]/artifactory/api/npm/product_release_npm/#luciad%2fria-core 143ms
18 http fetch GET 404 https://[DOMAIN]:443/artifactory/api/npm/product_release_npm/#luciad/ria-core/-/#luciad/ria-core-2019.0.1.tgz 12ms
19 silly fetchPackageMetaData error for #luciad/ria-core#^2019.0 404 Not Found - GET https://[DOMAIN]:443/artifactory/api/npm/product_release_npm/#luciad/ria-core/-/#luciad/ria-core-2019.0.1.tgz
20 http fetch GET 404 https://[DOMAIN]:443/artifactory/api/npm/product_release_npm/#luciad/ria-core/-/#luciad/ria-core-2019.0.1.tgz 10ms
21 silly fetchPackageMetaData error for #luciad/ria-core#^2019.0 404 Not Found - GET https://[DOMAIN]:443/artifactory/api/npm/product_release_npm/#luciad/ria-core/-/#luciad/ria-core-2019.0.1.tgz
22 timing stage:rollbackFailedOptional Completed in 0ms
23 timing stage:runTopLevelLifecycles Completed in 248ms
24 silly saveTree release
25 verbose stack Error: 404 Not Found - GET https://[DOMAIN]:443/artifactory/api/npm/product_release_npm/#luciad/ria-core/-/#luciad/ria-core-2019.0.1.tgz
25 verbose stack at res.buffer.catch.then.body (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-fetch\check-response.js:104:15)
25 verbose stack at process._tickCallback (internal/process/next_tick.js:68:7)
26 verbose statusCode 404
27 verbose pkgid #luciad/ria-core#^2019.0
28 verbose cwd D:\Desktop\EXPERIMENT\artifactory\release
29 verbose Windows_NT 10.0.16299
30 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
31 verbose node v10.16.3
32 verbose npm v6.9.0
33 error code E404
34 error 404 Not Found - GET https://[DOMAIN]:443/artifactory/api/npm/product_release_npm/#luciad/ria-core/-/#luciad/ria-core-2019.0.1.tgz
35 error 404
36 error 404 '#luciad/ria-core#^2019.0' is not in the npm registry.
37 error 404 You should bug the author to publish it (or use the name yourself!)
38 error 404 Note that you can also install from a
39 error 404 tarball, folder, http url, or git url.
40 verbose exit [ 1, true ]
Any idea what might be causing this and/or how to fix this issue?
I'm going through an npm tutorial and one command we are learning is npm outdated -g to check if any global packages are out of date.
Whenever I run that command, I get the error:
npm ERR! Cannot read property 'length' of undefined
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/samlegros/.npm/_logs/2019-03-28T00_46_47_834Z-debug.log
I am running npm 6.9.0 and node 10.15.2.
Here is the error log associated with it:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'outdated', '-g' ]
2 info using npm#6.9.0
3 info using node#v10.15.2
4 verbose npm-session bc4abe7eb4488494
5 http fetch GET 304 https://registry.npmjs.org/express-generator 273ms (from cache)
6 silly pacote registry packument for express-generator#^4.16.0 fetched in 284ms
7 http fetch GET 304 https://registry.npmjs.org/http-server 278ms (from cache)
8 http fetch GET 304 https://registry.npmjs.org/text-table 274ms (from cache)
9 silly pacote registry packument for http-server#^0.11.1 fetched in 291ms
10 silly pacote registry packument for text-table#^0.2.0 fetched in 290ms
11 http fetch GET 304 https://registry.npmjs.org/jshint 278ms (from cache)
12 silly pacote registry packument for jshint#^2.10.1 fetched in 292ms
13 http fetch GET 304 https://registry.npmjs.org/node-dev 280ms (from cache)
14 http fetch GET 304 https://registry.npmjs.org/grunt-cli 285ms (from cache)
15 silly pacote registry packument for node-dev#^3.1.3 fetched in 294ms
16 silly pacote registry packument for grunt-cli#^1.3.2 fetched in 295ms
17 http fetch GET 304 https://registry.npmjs.org/create-react-app 289ms (from cache)
18 http fetch GET 304 https://registry.npmjs.org/sequelize-cli 283ms (from cache)
19 silly pacote registry packument for create-react-app#^2.1.8 fetched in 301ms
20-31...
32 silly pacote registry packument for ionic#^3.20.0 fetched in 344ms
33 http fetch GET 304 https://registry.npmjs.org/cordova 350ms (from cache)
34 silly pacote registry packument for cordova#^8.0.0 fetched in 370ms
35 http fetch GET 304 https://registry.npmjs.org/npm 364ms (from cache)
36 silly pacote registry packument for npm#^6.9.0 fetched in 391ms
37 verbose stack TypeError: Cannot read property 'length' of undefined
37 verbose stack at dotindex (/usr/local/lib/node_modules/npm/node_modules/text-table/index.js:59:32)
37 verbose stack at /usr/local/lib/node_modules/npm/node_modules/text-table/index.js:11:21
37 verbose stack at Array.forEach (<anonymous>)
37 verbose stack at forEach (/usr/local/lib/node_modules/npm/node_modules/text-table/index.js:73:31)
37 verbose stack at /usr/local/lib/node_modules/npm/node_modules/text-table/index.js:10:9
37 verbose stack at Array.reduce (<anonymous>)
37 verbose stack at reduce (/usr/local/lib/node_modules/npm/node_modules/text-table/index.js:63:30)
37 verbose stack at module.exports (/usr/local/lib/node_modules/npm/node_modules/text-table/index.js:9:20)
37 verbose stack at /usr/local/lib/node_modules/npm/lib/outdated.js:130:16
37 verbose stack at cb (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
37 verbose stack at outdated_ (/usr/local/lib/node_modules/npm/lib/outdated.js:221:12)
37 verbose stack at skip (/usr/local/lib/node_modules/npm/lib/outdated.js:343:5)
37 verbose stack at updateDeps (/usr/local/lib/node_modules/npm/lib/outdated.js:446:7)
37 verbose stack at tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
37 verbose stack at Promise.successAdapter [as _fulfillmentHandler0] (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/nodeify.js:23:30)
37 verbose stack at Promise._settlePromise (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:566:21)
38 verbose cwd /Users/samlegros/Documents/Development/Tutorials/lynda-become-a-mern-stack-javascript-developer/learning-npm-the-node-package-manager/exercise-files/CH2/02_01/start
39 verbose Darwin 18.2.0
40 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "outdated" "-g"
41 verbose node v10.15.2
42 verbose npm v6.9.0
43 error Cannot read property 'length' of undefined
44 verbose exit [ 1, true ]
Any help would be deeply appreciated. Thank you.
According to npm-cli on github there was an issue with npm outdated. It was fixed a couple of weeks ago so you likely have to wait until the next update of npm comes out for the fix to be released.
Link: npm outdated fix