Docs: Installation
$ curl -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=7.21.0 sh -
==> Extracting pnpm binaries 7.21.0
Copying pnpm CLI from /tmp/tmp.vQvX01EvZv/pnpm to /home/neo/.local/share/pnpm/pnpm
Appended new lines to /home/neo/.bashrc
Next configuration changes were made:
export PNPM_HOME="/home/neo/.local/share/pnpm"
export PATH="$PNPM_HOME:$PATH"
To start using pnpm, run:
source /home/neo/.bashrc
We will install Docusaurus using pnpm.
First, cd
into a directory.
$ cd ~/dev/work/repo/github/experiments/javascript/docusaurus
Install Docusaurus: https://docusaurus.io/docs/installation
Look for the "Alternative installation commands".
You can also initialize a new project using your preferred project manager.
$ pnpm create docusaurus
.../share/pnpm/store/v3/tmp/dlx-517567 | WARN deprecated stable@0.1.8
.../share/pnpm/store/v3/tmp/dlx-517567 | +356 ++++++++++++++++++++++++++++++++++++
Packages are hard linked from the content-addressable store to the virtual store.
Content-addressable store is at: /home/neo/.local/share/pnpm/store/v3
Virtual store is at: ../../../../../../.local/share/pnpm/store/v3/tmp/dlx-517567/node_modules/.pnpm
.../share/pnpm/store/v3/tmp/dlx-517567 | Progress: resolved 356, reused 0, downloaded 356, added 356, done
✔ What should we name this site? … brain
✔ Select a template below... › classic (recommended)
✔ This template is available in TypeScript. Do you want to use the TS variant? … yes
[INFO] Creating new Docusaurus project...
[INFO] Installing dependencies with pnpm...
Progress: resolved 1, reused 0, downloaded 0, added 0
Progress: resolved 4, reused 0, downloaded 2, added 0
Progress: resolved 4, reused 0, downloaded 4, added 0
Progress: resolved 7, reused 0, downloaded 4, added 0
Progress: resolved 9, reused 0, downloaded 6, added 0
Progress: resolved 18, reused 4, downloaded 8, added 0
Progress: resolved 31, reused 11, downloaded 15, added 0
Progress: resolved 43, reused 13, downloaded 22, added 0
Progress: resolved 54, reused 16, downloaded 30, added 0
Progress: resolved 63, reused 18, downloaded 38, added 0
Progress: resolved 71, reused 22, downloaded 43, added 0
Progress: resolved 79, reused 23, downloaded 50, added 0
Progress: resolved 81, reused 23, downloaded 52, added 0
Progress: resolved 85, reused 23, downloaded 56, added 0
Progress: resolved 89, reused 24, downloaded 57, added 0
Progress: resolved 94, reused 24, downloaded 64, added 0
Progress: resolved 103, reused 30, downloaded 69, added 0
Progress: resolved 130, reused 53, downloaded 70, added 0
Progress: resolved 166, reused 86, downloaded 72, added 0
Progress: resolved 213, reused 123, downloaded 77, added 0
Progress: resolved 258, reused 142, downloaded 105, added 0
Progress: resolved 331, reused 161, downloaded 146, added 0
Progress: resolved 397, reused 185, downloaded 195, added 0
Progress: resolved 415, reused 185, downloaded 210, added 0
Progress: resolved 471, reused 211, downloaded 238, added 0
Progress: resolved 529, reused 235, downloaded 272, added 0
Progress: resolved 566, reused 247, downloaded 291, added 0
Progress: resolved 627, reused 258, downloaded 341, added 0
Progress: resolved 700, reused 275, downloaded 392, added 0
Progress: resolved 718, reused 275, downloaded 414, added 0
WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
Progress: resolved 762, reused 300, downloaded 425, added 0
Progress: resolved 801, reused 303, downloaded 459, added 0
Progress: resolved 894, reused 323, downloaded 530, added 0
Progress: resolved 955, reused 344, downloaded 566, added 0
Progress: resolved 1006, reused 354, downloaded 637, added 0
Packages: +1021
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1015, reused 354, downloaded 655, added 0
Packages are hard linked from the content-addressable store to the virtual store.
Content-addressable store is at: /home/neo/.local/share/pnpm/store/v3
Virtual store is at: node_modules/.pnpm
Progress: resolved 1015, reused 354, downloaded 660, added 1021, done
.../node_modules/core-js-pure postinstall$ node -e "try{require('./postinstall')}catch(e){}"
.../core-js@3.27.1/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}"
.../node_modules/core-js-pure postinstall: Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
.../node_modules/core-js-pure postinstall: The project needs your help! Please consider supporting of core-js:
.../node_modules/core-js-pure postinstall: > https://opencollective.com/core-js
.../node_modules/core-js-pure postinstall: > https://patreon.com/zloirock
.../node_modules/core-js-pure postinstall: > bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz
.../node_modules/core-js-pure postinstall: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
.../node_modules/core-js-pure postinstall: Done
.../core-js@3.27.1/node_modules/core-js postinstall: Done
dependencies:
+ @docusaurus/core 2.2.0
+ @docusaurus/preset-classic 2.2.0
+ @mdx-js/react 1.6.22 (2.2.1 is available)
+ clsx 1.2.1
+ prism-react-renderer 1.3.5
+ react 17.0.2 (18.2.0 is available)
+ react-dom 17.0.2 (18.2.0 is available)
devDependencies:
+ @docusaurus/module-type-aliases 2.2.0
+ @tsconfig/docusaurus 1.0.6
+ typescript 4.9.4
WARN Issues with peer dependencies found
.
└─┬ @docusaurus/preset-classic 2.2.0
└─┬ @docusaurus/theme-search-algolia 2.2.0
└─┬ @docsearch/react 3.3.1
└─┬ @algolia/autocomplete-preset-algolia 1.7.2
└── ✕ missing peer @algolia/client-search@">= 4.9.1 < 6"
Peer dependencies that should be installed:
@algolia/client-search@">= 4.9.1 < 6"
Done in 37.2s
[SUCCESS] Created brain.
[INFO] Inside that directory, you can run several commands:
`pnpm start`
Starts the development server.
`pnpm build`
Bundles your website into static files for production.
`pnpm serve`
Serves the built website locally.
`pnpm deploy`
Publishes the website to GitHub pages.
We recommend that you begin by typing:
`cd brain`
`pnpm start`
Happy building awesome websites!