Replies: 2 comments 4 replies
-
You should try to run it again - this is an NPM issue. If you have more issues try clearing your npm cache and trying again. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply! Tried clearing cache but getting the JSON parse error in a different place now : C:\Users\username\Documents\source>npm cache verify C:\Users\username\Documents\source>npm install -g gulp npm ERR! A complete log of this run can be found in: |
Beta Was this translation helpful? Give feedback.
-
Getting the below error when trying to run gulp from Windows :
C:\Users\username\Documents\source>npm install -g gulp
npm ERR! Unexpected end of JSON input while parsing near '.../registry.npmjs.org/v'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\username\AppData\Roaming\npm-cache_logs\2021-01-04T01_20_51_321Z-debug.log
Complete log:
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\username\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'gulp'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 2882947d000a9313
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 304 https://registry.npmjs.org/gulp 498ms (from cache)
8 silly pacote tag manifest for gulp@latest fetched in 533ms
9 timing stage:loadCurrentTree Completed in 563ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 2ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule [email protected] checking installable status
17 http fetch GET 304 https://registry.npmjs.org/glob-watcher 383ms (from cache)
18 silly pacote range manifest for glob-watcher@^5.0.3 fetched in 390ms
19 silly resolveWithNewModule [email protected] checking installable status
20 http fetch GET 304 https://registry.npmjs.org/undertaker 411ms (from cache)
21 http fetch GET 304 https://registry.npmjs.org/gulp-cli 414ms (from cache)
22 silly pacote range manifest for undertaker@^1.2.1 fetched in 417ms
23 silly resolveWithNewModule [email protected] checking installable status
24 silly pacote range manifest for gulp-cli@^2.2.0 fetched in 419ms
25 silly resolveWithNewModule [email protected] checking installable status
26 http fetch GET 304 https://registry.npmjs.org/vinyl-fs 437ms (from cache)
27 silly fetchPackageMetaData error for vinyl-fs@^3.0.0 Unexpected end of JSON input while parsing near '.../registry.npmjs.org/v'
28 timing stage:rollbackFailedOptional Completed in 2ms
29 timing stage:runTopLevelLifecycles Completed in 1025ms
30 verbose stack SyntaxError: Unexpected end of JSON input while parsing near '.../registry.npmjs.org/v'
30 verbose stack at JSON.parse ()
30 verbose stack at parseJson (C:\Users\username\AppData\Roaming\npm\node_modules\npm\node_modules\json-parse-better-errors\index.js:7:17)
30 verbose stack at C:\Users\username\AppData\Roaming\npm\node_modules\npm\node_modules\node-fetch-npm\src\body.js:96:50
30 verbose stack at processTicksAndRejections (internal/process/task_queues.js:97:5)
31 verbose cwd C:\Users\username\Documents\source
32 verbose Windows_NT 10.0.18363
33 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\username\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "-g" "gulp"
34 verbose node v12.18.0
35 verbose npm v6.14.10
36 error Unexpected end of JSON input while parsing near '.../registry.npmjs.org/v'
37 verbose exit [ 1, true ]
Tried
Versions:
node v12.18.0
npm v6.14.10
git v2.27.0.windows.1
Any suggestions to resolve this issue would be really helpful! Thank you!!
Beta Was this translation helpful? Give feedback.
All reactions