gitbook-cli
gitbook-cli copied to clipboard
Error while installing gitbook
Hi, it looks like I can't install any version
rhaym@rhaym-debian # gitbook fetch 3.2.3
Installing GitBook 3.2.3
\
Error: Failed to parse json
Unexpected token 'u' at 1:1
[email protected]"
^
any ideas, or atleast from which file is this error coming from
Here's debug version
rhaym@rhaym-debian:# gitbook fetch 3.2.3 --debug
Installing GitBook 3.2.3
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: several bugs fixed in v3.2.1
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2
npm WARN optional dep failed, continuing [email protected]
npm WARN deprecated [email protected]: Version no longer supported. Upgrade to @latest
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: Package no longer supported. Replaced by @asciidoctor/core
npm WARN deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN optional dep failed, continuing [email protected]
npm WARN deprecated [email protected]: Datauri 2.0 released. See more in https://github.com/data-uri/datauri/releases/tag/v2.0.0
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
\
> [email protected] postinstall /tmp/tmp-13129Icf4ikRmJ0lq/node_modules/gitbook/node_modules/juice/node_modules/web-resource-inliner/node_modules/cli-color/node_modules/es5-ext
> node -e "try{require('./_postinstall')}catch(e){}" || exit 0
Error: Failed to parse json
Unexpected token 'u' at 1:1
[email protected]"
^
Error: Failed to parse json
Unexpected token 'u' at 1:1
[email protected]"
^
at parseError (/root/.nvm/versions/node/v18.16.0/lib/node_modules/gitbook-cli/node_modules/npmi/node_modules/npm/node_modules/read-package-json/read-json.js:390:11)
at parseJson (/root/.nvm/versions/node/v18.16.0/lib/node_modules/gitbook-cli/node_modules/npmi/node_modules/npm/node_modules/read-package-json/read-json.js:79:23)
at /root/.nvm/versions/node/v18.16.0/lib/node_modules/gitbook-cli/node_modules/npmi/node_modules/npm/node_modules/read-package-json/read-json.js:48:5
at /root/.nvm/versions/node/v18.16.0/lib/node_modules/gitbook-cli/node_modules/npmi/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:78:16
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
I'm not sure but it seems that fetched contributors metadata may be broken?
(OMIT SOME DATA....)
{
"name": "Stefania Mellai",
"email": "[email protected]"
},
{
"name": "Nebuleon Fumika",
"email": "neb },
{
"name": "John Foster",
"email": "[email protected]"
},
{
"name": "Robert Dodier",
"email": "[email protected]"
},
{
"name": "Anthony Dugois",
"email": "[email protected]"
},
{
"name": "Qeole",
"email": "[email protected]"
},
{
"name": "Denis Ciccale",
"email": "[email protected]"
},
{
"name": "Michael Johnston",
"email": "[email protected]"
},
{
"name": "Taras",
"email": "[email protected]"
}
],
"bugs": {
"url": "https://github.com/isagalaev/highlight.js/issues"
},
"license": "BSD-3-Clause",
same issue
Any update on this issue? Thanks🙏
This tool seems like it got discontinued and they moved to the web version