
I'm able to reproduce the same error with npm, but it works fine with yarn. I'll try looking into this soon.
In the meantime, you should be able to create a version with yarn run docusaurus docs:version 1.1.0.
thanks for reply. i have created a version with yarn run docusaurus docs:version 1.1.0. but I have new error when I install @docusaurus/plugin-client-redirects, I tried npm and yarn, but I was unable to complete the installation.
Just to double check, did you use yarn add @docusaurus/plugin-client-redirects to add the plugin?
Also, could you post a screenshot of the error and link us to your code (if possible)?
Just to double check, did you use
yarn add @docusaurus/plugin-client-redirectsto add the plugin?
Also, could you post a screenshot of the error and link us to your code (if possible)?
There are no errors, always in the pending state. It's probability a network problem, cause I'm in China.
@DyncMark you are right, but where did you see in docs to run npm run docusaurus ?

As far as I know npm can only run registered scripts in package.json, so it does not work
But if I add this script: "docusaurus": "docusaurus", it now works:

Will add this script in the templates as it will be more convenient for npm users.
@teikjun in the migration cli PR, can you add it as well?
About the redirects plugin, I don't think it's related to the plugin. Anyway this plugin only works on the production build so it should have no impact if you start the site in dev mode.
if you have an error with the redirect plugin, please verify your connexion and open another issue with a detailed bug report
@slorber I have added it to the migration cli PR.
The instructions that say npm run docusaurus ... came from here: https://v2.docusaurus.io/docs/versioning/#tagging-a-new-version. The docs are correct now that we have added the scripts :)
@DyncMark you are right, but where did you see in docs to run
npm run docusaurus?
As far as I know npm can only run registered scripts in package.json, so it does not work
But if I add this script:
"docusaurus": "docusaurus",it now works:
Will add this script in the templates as it will be more convenient for npm users.
@teikjun in the migration cli PR, can you add it as well?
About the redirects plugin, I don't think it's related to the plugin. Anyway this plugin only works on the production build so it should have no impact if you start the site in dev mode.
Thanks very much. It works fine now.

I saw the document on docusaurus2 website and then I check out the docusaurus2 project from GitHub, but undefined the docusaurus scripts in the package.json.
great :) thanks