docs: specify Node version requirement to a minor#7271
Conversation
I believe the current version of Docusaurus requires node 16. With 14 I get:
```
import {program} from 'commander';
^^^^^^^
SyntaxError: The requested module 'commander' does not provide an export named 'program'
at ModuleJob._instantiate (internal/modules/esm/module_job.js:92:21)
at async ModuleJob.run (internal/modules/esm/module_job.js:107:20)
at async Loader.import (internal/modules/esm/loader.js:179:24)
```
|
Hi @DanRoscigno! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
✅ [V2]Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
|
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-7271--docusaurus-2.netlify.app/ |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Josh-Cena
left a comment
There was a problem hiding this comment.
I can confirm it works on Node v14.13 and not before. Changed it to 14.13 and let's move on.
I didn't change the version range in our package.json, because in fact, I'm not aware of any package manager that forbids installation of dependencies simply because of outdated Node version, so this is going to fail at runtime anyways.
* Update installation.md
I believe the current version of Docusaurus requires node 16. With 14 I get:
```
import {program} from 'commander';
^^^^^^^
SyntaxError: The requested module 'commander' does not provide an export named 'program'
at ModuleJob._instantiate (internal/modules/esm/module_job.js:92:21)
at async ModuleJob.run (internal/modules/esm/module_job.js:107:20)
at async Loader.import (internal/modules/esm/loader.js:179:24)
```
* Update installation.md
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>

I believe the current version of Docusaurus requires node 16. With 14 I get:
Pre-flight checklist
Motivation
Test Plan
Test links
Deploy preview: https://deploy-preview-_____--docusaurus-2.netlify.app/
Related issues/PRs