facebook / docusaurus

Easy to maintain open source documentation websites.
https://docusaurus.io
MIT License
56.1k stars 8.42k forks source link

New install does not respect the --port specified to start #1766

Closed maurodelazeri closed 5 years ago

maurodelazeri commented 5 years ago

πŸ› Bug Report

I'm starting a fresh install, but it does not use the port specified with --port

Have you read the Contributing Guidelines on issues?

Yes

To Reproduce

  1. I'm starting a fresh install
  2. yarn global add docusaurus-init
  3. docusaurus-init .
  4. cd website .
  5. yarn start --host 127.0.0.1 --port 3000

the port 3000 is available

root@oraculo:/tmp/site/website# telnet localhost 3000
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

Expected behavior

It should start with the port and host specified

Actual Behavior

It chooses a random port

$ yarn start --host 127.0.0.1 --port 3000
yarn run v1.17.3
warning package.json: No license field
$ docusaurus-start --host 127.0.0.1 --port 3000
LiveReload server started on port 36500
Docusaurus server started on port 2098

Reproducible Demo

$ node -v
v12.8.1

$ yarn -v
1.17.3
root@oraculo:/tmp# mkdir site
root@oraculo:/tmp# cd site/
root@oraculo:/tmp/site# ls
root@oraculo:/tmp/site# yarn global add docusaurus-init

yarn global v1.17.3
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...

success Installed "docusaurus-init@1.12.0" with binaries:
      - docusaurus-init
Done in 0.31s.
root@oraculo:/tmp/site# docusaurus-init .
Website folder created!

Installing latest version of Docusaurus in website.

yarn add v1.17.3
warning package.json: No license field
info No lockfile found.
warning No license field
[1/4] Resolving packages...
warning docusaurus > @babel/polyfill@7.4.4: 🚨 As of Babel 7.4.0, this
package has been deprecated in favor of directly
including core-js/stable (to polyfill ECMAScript
features) and regenerator-runtime/runtime
(needed to use transpiled generator functions):

  > import "core-js/stable";
  > import "regenerator-runtime/runtime";
warning docusaurus > markdown-toc > gray-matter > coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
warning docusaurus > remarkable > autolinker > gulp-header@1.8.12: Removed event-stream from gulp-header
[2/4] Fetching packages...
info fsevents@2.0.7: The platform "linux" is incompatible with this module.
info "fsevents@2.0.7" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
warning No license field
success Saved 623 new dependencies.
info Direct dependencies
└─ docusaurus@1.12.0
info All dependencies
β”œβ”€ @babel/code-frame@7.5.5
β”œβ”€ @babel/core@7.5.5
β”œβ”€ @babel/helper-builder-binary-assignment-operator-visitor@7.1.0
β”œβ”€ @babel/helper-builder-react-jsx@7.3.0
β”œβ”€ @babel/helper-call-delegate@7.4.4
β”œβ”€ @babel/helper-create-class-features-plugin@7.5.5
β”œβ”€ @babel/helper-define-map@7.5.5
β”œβ”€ @babel/helper-explode-assignable-expression@7.1.0
β”œβ”€ @babel/helper-wrap-function@7.2.0
β”œβ”€ @babel/helpers@7.5.5
β”œβ”€ @babel/highlight@7.5.0
β”œβ”€ @babel/parser@7.5.5
β”œβ”€ @babel/plugin-proposal-async-generator-functions@7.2.0
β”œβ”€ @babel/plugin-proposal-class-properties@7.5.5
β”œβ”€ @babel/plugin-proposal-dynamic-import@7.5.0
β”œβ”€ @babel/plugin-proposal-json-strings@7.2.0
β”œβ”€ @babel/plugin-proposal-optional-catch-binding@7.2.0
β”œβ”€ @babel/plugin-proposal-unicode-property-regex@7.4.4
β”œβ”€ @babel/plugin-transform-arrow-functions@7.2.0
β”œβ”€ @babel/plugin-transform-async-to-generator@7.5.0
β”œβ”€ @babel/plugin-transform-block-scoped-functions@7.2.0
β”œβ”€ @babel/plugin-transform-block-scoping@7.5.5
β”œβ”€ @babel/plugin-transform-classes@7.5.5
β”œβ”€ @babel/plugin-transform-computed-properties@7.2.0
β”œβ”€ @babel/plugin-transform-destructuring@7.5.0
β”œβ”€ @babel/plugin-transform-dotall-regex@7.4.4
β”œβ”€ @babel/plugin-transform-duplicate-keys@7.5.0
β”œβ”€ @babel/plugin-transform-exponentiation-operator@7.2.0
β”œβ”€ @babel/plugin-transform-for-of@7.4.4
β”œβ”€ @babel/plugin-transform-function-name@7.4.4
β”œβ”€ @babel/plugin-transform-literals@7.2.0
β”œβ”€ @babel/plugin-transform-member-expression-literals@7.2.0
β”œβ”€ @babel/plugin-transform-modules-amd@7.5.0
β”œβ”€ @babel/plugin-transform-modules-commonjs@7.5.0
β”œβ”€ @babel/plugin-transform-modules-systemjs@7.5.0
β”œβ”€ @babel/plugin-transform-modules-umd@7.2.0
β”œβ”€ @babel/plugin-transform-named-capturing-groups-regex@7.4.5
β”œβ”€ @babel/plugin-transform-new-target@7.4.4
β”œβ”€ @babel/plugin-transform-object-super@7.5.5
β”œβ”€ @babel/plugin-transform-parameters@7.4.4
β”œβ”€ @babel/plugin-transform-property-literals@7.2.0
β”œβ”€ @babel/plugin-transform-react-display-name@7.2.0
β”œβ”€ @babel/plugin-transform-react-jsx-self@7.2.0
β”œβ”€ @babel/plugin-transform-react-jsx-source@7.5.0
β”œβ”€ @babel/plugin-transform-react-jsx@7.3.0
β”œβ”€ @babel/plugin-transform-regenerator@7.4.5
β”œβ”€ @babel/plugin-transform-reserved-words@7.2.0
β”œβ”€ @babel/plugin-transform-shorthand-properties@7.2.0
β”œβ”€ @babel/plugin-transform-spread@7.2.2
β”œβ”€ @babel/plugin-transform-sticky-regex@7.2.0
β”œβ”€ @babel/plugin-transform-template-literals@7.4.4
β”œβ”€ @babel/plugin-transform-typeof-symbol@7.2.0
β”œβ”€ @babel/plugin-transform-unicode-regex@7.4.4
β”œβ”€ @babel/polyfill@7.4.4
β”œβ”€ @babel/preset-env@7.5.5
β”œβ”€ @babel/preset-react@7.0.0
β”œβ”€ @babel/register@7.5.5
β”œβ”€ @babel/types@7.5.5
β”œβ”€ @mrmlnc/readdir-enhanced@2.2.1
β”œβ”€ @nodelib/fs.stat@1.1.3
β”œβ”€ @sindresorhus/is@0.7.0
β”œβ”€ @types/cheerio@0.22.13
β”œβ”€ @types/node@12.7.2
β”œβ”€ @types/q@1.5.2
β”œβ”€ accepts@1.3.7
β”œβ”€ address@1.1.0
β”œβ”€ ajv@6.10.2
β”œβ”€ ansi-escapes@3.2.0
β”œβ”€ ansi-red@0.1.1
β”œβ”€ ansi-styles@3.2.1
β”œβ”€ ansi-wrap@0.1.0
β”œβ”€ anymatch@3.0.3
β”œβ”€ arch@2.1.1
β”œβ”€ archive-type@4.0.0
β”œβ”€ arr-flatten@1.1.0
β”œβ”€ array-filter@0.0.1
β”œβ”€ array-find-index@1.0.2
β”œβ”€ array-flatten@1.1.1
β”œβ”€ array-map@0.0.0
β”œβ”€ array-reduce@0.0.0
β”œβ”€ array-union@1.0.2
β”œβ”€ array-uniq@1.0.3
β”œβ”€ arrify@1.0.1
β”œβ”€ asn1@0.2.4
β”œβ”€ assign-symbols@1.0.0
β”œβ”€ async-each@1.0.3
β”œβ”€ async@1.5.2
β”œβ”€ asynckit@0.4.0
β”œβ”€ atob@2.1.2
β”œβ”€ autolinker@0.28.1
β”œβ”€ autoprefixer@9.6.1
β”œβ”€ aws-sign2@0.7.0
β”œβ”€ aws4@1.8.0
β”œβ”€ babel-code-frame@6.26.0
β”œβ”€ babylon@6.18.0
β”œβ”€ balanced-match@1.0.0
β”œβ”€ base@0.11.2
β”œβ”€ base64-js@1.3.1
β”œβ”€ bcrypt-pbkdf@1.0.2
β”œβ”€ big.js@5.2.2
β”œβ”€ bin-check@4.1.0
β”œβ”€ bin-version-check@4.0.0
β”œβ”€ bin-version@3.1.0
β”œβ”€ binary-extensions@2.0.0
β”œβ”€ bl@1.2.2
β”œβ”€ body-parser@1.19.0
β”œβ”€ body@5.1.0
β”œβ”€ brace-expansion@1.1.11
β”œβ”€ braces@2.3.2
β”œβ”€ buffer-alloc-unsafe@1.1.0
β”œβ”€ buffer-alloc@1.2.0
β”œβ”€ buffer-crc32@0.2.13
β”œβ”€ buffer-fill@1.0.0
β”œβ”€ buffer@5.4.0
β”œβ”€ cache-base@1.0.1
β”œβ”€ cacheable-request@2.1.4
β”œβ”€ call-me-maybe@1.0.1
β”œβ”€ caller-callsite@2.0.0
β”œβ”€ caller-path@2.0.0
β”œβ”€ callsites@2.0.0
β”œβ”€ camelcase-keys@2.1.0
β”œβ”€ camelcase@2.1.1
β”œβ”€ caniuse-lite@1.0.30000989
β”œβ”€ caseless@0.12.0
β”œβ”€ caw@2.0.1
β”œβ”€ chardet@0.7.0
β”œβ”€ cheerio@0.22.0
β”œβ”€ chokidar@3.0.2
β”œβ”€ class-utils@0.3.6
β”œβ”€ classnames@2.2.6
β”œβ”€ cli-cursor@2.1.0
β”œβ”€ cli-width@2.2.0
β”œβ”€ clipboard@2.0.4
β”œβ”€ clone-response@1.0.2
β”œβ”€ coa@2.0.2
β”œβ”€ coffee-script@1.12.7
β”œβ”€ collection-visit@1.0.0
β”œβ”€ color-name@1.1.3
β”œβ”€ color@2.0.1
β”œβ”€ combined-stream@1.0.8
β”œβ”€ commander@2.20.0
β”œβ”€ commondir@1.0.1
β”œβ”€ concat-map@0.0.1
β”œβ”€ concat-stream@1.6.2
β”œβ”€ concat-with-sourcemaps@1.1.0
β”œβ”€ config-chain@1.1.12
β”œβ”€ console-stream@0.1.1
β”œβ”€ continuable-cache@0.3.1
β”œβ”€ convert-source-map@1.6.0
β”œβ”€ cookie-signature@1.0.6
β”œβ”€ cookie@0.4.0
β”œβ”€ copy-descriptor@0.1.1
β”œβ”€ core-js-compat@3.2.1
β”œβ”€ core-js@2.6.9
β”œβ”€ core-util-is@1.0.2
β”œβ”€ cosmiconfig@5.2.1
β”œβ”€ cross-spawn@6.0.5
β”œβ”€ crowdin-cli@0.3.0
β”œβ”€ css-color-names@0.0.4
β”œβ”€ css-declaration-sorter@4.0.1
β”œβ”€ css-select-base-adapter@0.1.1
β”œβ”€ css-select@2.0.2
β”œβ”€ css-tree@1.0.0-alpha.33
β”œβ”€ css-unit-converter@1.1.1
β”œβ”€ css-what@2.1.3
β”œβ”€ cssesc@2.0.0
β”œβ”€ cssnano-preset-default@4.0.7
β”œβ”€ cssnano-util-raw-cache@4.0.1
β”œβ”€ cssnano-util-same-parent@4.0.1
β”œβ”€ cssnano@4.1.10
β”œβ”€ csso@3.5.1
β”œβ”€ currently-unhandled@0.4.1
β”œβ”€ dashdash@1.14.1
β”œβ”€ debug@2.6.9
β”œβ”€ decamelize@1.2.0
β”œβ”€ decompress-response@3.3.0
β”œβ”€ decompress-tar@4.1.1
β”œβ”€ decompress-tarbz2@4.1.1
β”œβ”€ decompress-targz@4.1.1
β”œβ”€ decompress-unzip@4.0.1
β”œβ”€ deep-is@0.1.3
β”œβ”€ delayed-stream@1.0.0
β”œβ”€ delegate@3.2.0
β”œβ”€ destroy@1.0.4
β”œβ”€ detect-port-alt@1.1.6
β”œβ”€ diacritics-map@0.1.0
β”œβ”€ dir-glob@2.0.0
β”œβ”€ docusaurus@1.12.0
β”œβ”€ domhandler@2.4.2
β”œβ”€ domutils@1.7.0
β”œβ”€ dot-prop@4.2.0
β”œβ”€ download@6.2.5
β”œβ”€ duplexer@0.1.1
β”œβ”€ ecc-jsbn@0.1.2
β”œβ”€ ee-first@1.1.1
β”œβ”€ electron-to-chromium@1.3.235
β”œβ”€ emojis-list@2.1.0
β”œβ”€ end-of-stream@1.4.1
β”œβ”€ error-ex@1.3.2
β”œβ”€ error@7.0.2
β”œβ”€ es-abstract@1.13.0
β”œβ”€ es-to-primitive@1.2.0
β”œβ”€ esprima@4.0.1
β”œβ”€ eventsource@1.0.7
β”œβ”€ executable@4.1.1
β”œβ”€ expand-brackets@2.1.4
β”œβ”€ expand-range@1.8.2
β”œβ”€ express@4.17.1
β”œβ”€ ext-list@2.2.2
β”œβ”€ extend@3.0.2
β”œβ”€ external-editor@3.1.0
β”œβ”€ extglob@2.0.4
β”œβ”€ extsprintf@1.3.0
β”œβ”€ fast-deep-equal@2.0.1
β”œβ”€ fast-glob@2.2.7
β”œβ”€ fast-json-stable-stringify@2.0.0
β”œβ”€ faye-websocket@0.10.0
β”œβ”€ fd-slicer@1.1.0
β”œβ”€ feed@1.1.1
β”œβ”€ figures@2.0.0
β”œβ”€ filename-reserved-regex@2.0.0
β”œβ”€ filesize@3.6.1
β”œβ”€ fill-range@4.0.0
β”œβ”€ finalhandler@1.1.2
β”œβ”€ find-cache-dir@2.1.0
β”œβ”€ find-up@3.0.0
β”œβ”€ find-versions@3.1.0
β”œβ”€ for-in@1.0.2
β”œβ”€ forever-agent@0.6.1
β”œβ”€ fork-ts-checker-webpack-plugin@1.5.0
β”œβ”€ form-data@2.3.3
β”œβ”€ forwarded@0.1.2
β”œβ”€ from2@2.3.0
β”œβ”€ fs-constants@1.0.0
β”œβ”€ fs-extra@8.1.0
β”œβ”€ fs.realpath@1.0.0
β”œβ”€ gaze@1.1.3
β”œβ”€ get-proxy@2.1.0
β”œβ”€ get-stream@3.0.0
β”œβ”€ get-value@2.0.6
β”œβ”€ getpass@0.1.7
β”œβ”€ gifsicle@4.0.1
β”œβ”€ glob-to-regexp@0.3.0
β”œβ”€ global-modules@2.0.0
β”œβ”€ global-prefix@3.0.0
β”œβ”€ globby@8.0.2
β”œβ”€ globule@1.2.1
β”œβ”€ good-listener@1.2.2
β”œβ”€ got@7.1.0
β”œβ”€ graceful-readlink@1.0.1
β”œβ”€ gray-matter@2.1.1
β”œβ”€ gulp-header@1.8.12
β”œβ”€ gzip-size@5.1.1
β”œβ”€ har-schema@2.0.0
β”œβ”€ har-validator@5.1.3
β”œβ”€ has-ansi@2.0.0
β”œβ”€ has-symbol-support-x@1.4.2
β”œβ”€ has-to-string-tag-x@1.4.1
β”œβ”€ has-value@1.0.0
β”œβ”€ has-values@1.0.0
β”œβ”€ has@1.0.3
β”œβ”€ hex-color-regex@1.1.0
β”œβ”€ highlight.js@9.15.9
β”œβ”€ hosted-git-info@2.8.4
β”œβ”€ hsl-regex@1.0.0
β”œβ”€ hsla-regex@1.0.0
β”œβ”€ html-comment-regex@1.1.2
β”œβ”€ htmlparser2@3.10.1
β”œβ”€ http-cache-semantics@3.8.1
β”œβ”€ http-parser-js@0.4.10
β”œβ”€ http-signature@1.2.0
β”œβ”€ iconv-lite@0.4.24
β”œβ”€ ieee754@1.1.13
β”œβ”€ ignore@3.3.10
β”œβ”€ imagemin-gifsicle@6.0.1
β”œβ”€ imagemin-jpegtran@6.0.0
β”œβ”€ imagemin-optipng@6.0.0
β”œβ”€ imagemin-svgo@7.0.0
β”œβ”€ imagemin@6.1.0
β”œβ”€ immer@1.10.0
β”œβ”€ import-fresh@2.0.0
β”œβ”€ import-lazy@3.1.0
β”œβ”€ inflight@1.0.6
β”œβ”€ ini@1.3.5
β”œβ”€ inquirer@6.5.0
β”œβ”€ interpret@1.2.0
β”œβ”€ into-stream@3.1.0
β”œβ”€ invariant@2.2.4
β”œβ”€ ip-regex@2.1.0
β”œβ”€ ipaddr.js@1.9.0
β”œβ”€ is-absolute-url@2.1.0
β”œβ”€ is-accessor-descriptor@1.0.0
β”œβ”€ is-arrayish@0.3.2
β”œβ”€ is-binary-path@2.1.0
β”œβ”€ is-color-stop@1.1.0
β”œβ”€ is-data-descriptor@1.0.0
β”œβ”€ is-date-object@1.0.1
β”œβ”€ is-descriptor@1.0.2
β”œβ”€ is-directory@0.3.1
β”œβ”€ is-extglob@2.1.1
β”œβ”€ is-finite@1.0.2
β”œβ”€ is-fullwidth-code-point@2.0.0
β”œβ”€ is-gif@3.0.0
β”œβ”€ is-jpg@2.0.0
β”œβ”€ is-natural-number@4.0.1
β”œβ”€ is-obj@1.0.1
β”œβ”€ is-object@1.0.1
β”œβ”€ is-plain-object@2.0.4
β”œβ”€ is-png@1.1.0
β”œβ”€ is-promise@2.1.0
β”œβ”€ is-regex@1.0.4
β”œβ”€ is-resolvable@1.1.0
β”œβ”€ is-retry-allowed@1.1.0
β”œβ”€ is-root@2.1.0
β”œβ”€ is-symbol@1.0.2
β”œβ”€ is-typedarray@1.0.0
β”œβ”€ is-url@1.2.4
β”œβ”€ is-utf8@0.2.1
β”œβ”€ is-windows@1.0.2
β”œβ”€ is-wsl@1.1.0
β”œβ”€ is2@2.0.1
β”œβ”€ isarray@1.0.0
β”œβ”€ isexe@2.0.0
β”œβ”€ isstream@0.1.2
β”œβ”€ jpegtran-bin@4.0.0
β”œβ”€ js-levenshtein@1.1.6
β”œβ”€ js-tokens@4.0.0
β”œβ”€ js-yaml@3.13.1
β”œβ”€ jsesc@2.5.2
β”œβ”€ json-buffer@3.0.0
β”œβ”€ json-parse-better-errors@1.0.2
β”œβ”€ json-schema-traverse@0.4.1
β”œβ”€ json-schema@0.2.3
β”œβ”€ json-stringify-safe@5.0.1
β”œβ”€ json3@3.3.3
β”œβ”€ json5@2.1.0
β”œβ”€ jsonfile@4.0.0
β”œβ”€ jsonify@0.0.0
β”œβ”€ jsprim@1.4.1
β”œβ”€ keyv@3.0.0
β”œβ”€ kind-of@3.2.2
β”œβ”€ lazy-cache@2.0.2
β”œβ”€ list-item@1.1.1
β”œβ”€ livereload-js@2.4.0
β”œβ”€ load-json-file@1.1.0
β”œβ”€ loader-utils@1.2.3
β”œβ”€ locate-path@3.0.0
β”œβ”€ lodash.assignin@4.2.0
β”œβ”€ lodash.bind@4.2.1
β”œβ”€ lodash.chunk@4.2.0
β”œβ”€ lodash.defaults@4.2.0
β”œβ”€ lodash.filter@4.6.0
β”œβ”€ lodash.flatten@4.4.0
β”œβ”€ lodash.foreach@4.5.0
β”œβ”€ lodash.map@4.6.0
β”œβ”€ lodash.memoize@4.1.2
β”œβ”€ lodash.merge@4.6.2
β”œβ”€ lodash.padstart@4.6.1
β”œβ”€ lodash.pick@4.4.0
β”œβ”€ lodash.reduce@4.6.0
β”œβ”€ lodash.reject@4.6.0
β”œβ”€ lodash.some@4.6.0
β”œβ”€ lodash.sortby@4.7.0
β”œβ”€ lodash.template@4.5.0
β”œβ”€ lodash.templatesettings@4.2.0
β”œβ”€ lodash.uniq@4.5.0
β”œβ”€ longest@1.0.1
β”œβ”€ loud-rejection@1.6.0
β”œβ”€ lpad-align@1.1.2
β”œβ”€ lru-cache@4.1.5
β”œβ”€ map-obj@1.0.1
β”œβ”€ map-visit@1.0.0
β”œβ”€ markdown-link@0.1.1
β”œβ”€ markdown-toc@1.2.0
β”œβ”€ math-random@1.0.4
β”œβ”€ mdn-data@2.0.4
β”œβ”€ media-typer@0.3.0
β”œβ”€ meow@3.7.0
β”œβ”€ merge-descriptors@1.0.1
β”œβ”€ merge2@1.2.4
β”œβ”€ methods@1.1.2
β”œβ”€ microevent.ts@0.1.1
β”œβ”€ mime-db@1.40.0
β”œβ”€ mime-types@2.1.24
β”œβ”€ mime@1.6.0
β”œβ”€ mimic-fn@1.2.0
β”œβ”€ minimatch@3.0.4
β”œβ”€ minimist@1.2.0
β”œβ”€ mixin-deep@1.3.2
β”œβ”€ mkdirp@0.5.1
β”œβ”€ mute-stream@0.0.7
β”œβ”€ nanomatch@1.2.13
β”œβ”€ negotiator@0.6.2
β”œβ”€ nice-try@1.0.5
β”œβ”€ node-modules-regexp@1.0.0
β”œβ”€ node-releases@1.1.27
β”œβ”€ normalize-package-data@2.5.0
β”œβ”€ normalize-range@0.1.2
β”œβ”€ normalize-url@3.3.0
β”œβ”€ npm-conf@1.1.3
β”œβ”€ nth-check@1.0.2
β”œβ”€ num2fraction@1.2.2
β”œβ”€ number-is-nan@1.0.1
β”œβ”€ oauth-sign@0.9.0
β”œβ”€ object-copy@0.1.0
β”œβ”€ object.assign@4.1.0
β”œβ”€ object.getownpropertydescriptors@2.0.3
β”œβ”€ object.values@1.1.0
β”œβ”€ once@1.4.0
β”œβ”€ onetime@2.0.1
β”œβ”€ open@6.4.0
β”œβ”€ optipng-bin@5.1.0
β”œβ”€ original@1.0.2
β”œβ”€ os-filter-obj@2.0.0
β”œβ”€ os-tmpdir@1.0.2
β”œβ”€ p-cancelable@0.3.0
β”œβ”€ p-event@1.3.0
β”œβ”€ p-is-promise@1.1.0
β”œβ”€ p-limit@2.2.1
β”œβ”€ p-locate@3.0.0
β”œβ”€ p-map-series@1.0.0
β”œβ”€ p-pipe@1.2.0
β”œβ”€ p-reduce@1.0.0
β”œβ”€ p-try@2.2.0
β”œβ”€ parse-json@4.0.0
β”œβ”€ pascalcase@0.1.1
β”œβ”€ path-dirname@1.0.2
β”œβ”€ path-key@2.0.1
β”œβ”€ path-parse@1.0.6
β”œβ”€ path-to-regexp@0.1.7
β”œβ”€ path-type@3.0.0
β”œβ”€ pend@1.2.0
β”œβ”€ performance-now@2.1.0
β”œβ”€ pinkie@2.0.4
β”œβ”€ pirates@4.0.1
β”œβ”€ pkg-dir@3.0.0
β”œβ”€ pkg-up@2.0.0
β”œβ”€ portfinder@1.0.22
β”œβ”€ posix-character-classes@0.1.1
β”œβ”€ postcss-calc@7.0.1
β”œβ”€ postcss-colormin@4.0.3
β”œβ”€ postcss-convert-values@4.0.1
β”œβ”€ postcss-discard-comments@4.0.2
β”œβ”€ postcss-discard-duplicates@4.0.2
β”œβ”€ postcss-discard-empty@4.0.1
β”œβ”€ postcss-discard-overridden@4.0.1
β”œβ”€ postcss-merge-longhand@4.0.11
β”œβ”€ postcss-merge-rules@4.0.3
β”œβ”€ postcss-minify-font-values@4.0.2
β”œβ”€ postcss-minify-gradients@4.0.2
β”œβ”€ postcss-minify-params@4.0.2
β”œβ”€ postcss-minify-selectors@4.0.2
β”œβ”€ postcss-normalize-charset@4.0.1
β”œβ”€ postcss-normalize-display-values@4.0.2
β”œβ”€ postcss-normalize-positions@4.0.2
β”œβ”€ postcss-normalize-repeat-style@4.0.2
β”œβ”€ postcss-normalize-string@4.0.2
β”œβ”€ postcss-normalize-timing-functions@4.0.2
β”œβ”€ postcss-normalize-unicode@4.0.1
β”œβ”€ postcss-normalize-url@4.0.1
β”œβ”€ postcss-normalize-whitespace@4.0.2
β”œβ”€ postcss-ordered-values@4.1.2
β”œβ”€ postcss-reduce-initial@4.0.3
β”œβ”€ postcss-reduce-transforms@4.0.2
β”œβ”€ postcss-svgo@4.0.2
β”œβ”€ postcss-unique-selectors@4.0.1
β”œβ”€ prismjs@1.17.1
β”œβ”€ private@0.1.8
β”œβ”€ process-nextick-args@2.0.1
β”œβ”€ proto-list@1.2.4
β”œβ”€ proxy-addr@2.0.5
β”œβ”€ pseudomap@1.0.2
β”œβ”€ psl@1.3.0
β”œβ”€ pump@3.0.0
β”œβ”€ q@1.5.1
β”œβ”€ query-string@5.1.1
β”œβ”€ querystringify@2.1.1
β”œβ”€ randomatic@3.1.1
β”œβ”€ raw-body@2.4.0
β”œβ”€ react-dev-utils@9.0.3
β”œβ”€ react-dom@16.9.0
β”œβ”€ react-error-overlay@6.0.1
β”œβ”€ react-is@16.9.0
β”œβ”€ react@16.9.0
β”œβ”€ read-pkg-up@1.0.1
β”œβ”€ read-pkg@1.1.0
β”œβ”€ readable-stream@2.3.6
β”œβ”€ readdirp@3.1.2
β”œβ”€ rechoir@0.6.2
β”œβ”€ recursive-readdir@2.2.2
β”œβ”€ redent@1.0.0
β”œβ”€ regenerate-unicode-properties@8.1.0
β”œβ”€ regenerator-runtime@0.13.3
β”œβ”€ regenerator-transform@0.14.1
β”œβ”€ regexp-tree@0.1.11
β”œβ”€ regjsgen@0.5.0
β”œβ”€ regjsparser@0.6.0
β”œβ”€ remove-trailing-separator@1.1.0
β”œβ”€ repeating@2.0.1
β”œβ”€ replace-ext@1.0.0
β”œβ”€ request@2.88.0
β”œβ”€ requires-port@1.0.0
β”œβ”€ resolve-from@3.0.0
β”œβ”€ resolve-url@0.2.1
β”œβ”€ resolve@1.12.0
β”œβ”€ responselike@1.0.2
β”œβ”€ restore-cursor@2.0.0
β”œβ”€ ret@0.1.15
β”œβ”€ rgb-regex@1.0.1
β”œβ”€ rgba-regex@1.0.0
β”œβ”€ rimraf@2.7.1
β”œβ”€ run-async@2.3.0
β”œβ”€ rxjs@6.5.2
β”œβ”€ safe-json-parse@1.0.1
β”œβ”€ safer-buffer@2.1.2
β”œβ”€ sax@1.2.4
β”œβ”€ scheduler@0.15.0
β”œβ”€ seek-bzip@1.0.5
β”œβ”€ select@1.1.2
β”œβ”€ semver-regex@2.0.0
β”œβ”€ semver-truncate@1.1.2
β”œβ”€ semver@5.7.1
β”œβ”€ serve-static@1.14.1
β”œβ”€ set-getter@0.1.0
β”œβ”€ set-value@2.0.1
β”œβ”€ shebang-regex@1.0.0
β”œβ”€ shell-quote@1.6.1
β”œβ”€ shelljs@0.8.3
β”œβ”€ simple-swizzle@0.2.2
β”œβ”€ sitemap@3.2.2
β”œβ”€ slash@1.0.0
β”œβ”€ snapdragon-node@2.1.1
β”œβ”€ snapdragon-util@3.0.1
β”œβ”€ sockjs-client@1.3.0
β”œβ”€ sort-keys-length@1.0.1
β”œβ”€ sort-keys@1.1.2
β”œβ”€ source-map-resolve@0.5.2
β”œβ”€ source-map-support@0.5.13
β”œβ”€ source-map-url@0.4.0
β”œβ”€ source-map@0.5.7
β”œβ”€ spdx-correct@3.1.0
β”œβ”€ spdx-exceptions@2.2.0
β”œβ”€ split-string@3.1.0
β”œβ”€ sprintf-js@1.0.3
β”œβ”€ squeak@1.3.0
β”œβ”€ sshpk@1.16.1
β”œβ”€ stable@0.1.8
β”œβ”€ static-extend@0.1.2
β”œβ”€ strict-uri-encode@1.1.0
β”œβ”€ string_decoder@1.1.1
β”œβ”€ string-template@0.2.1
β”œβ”€ string-width@2.1.1
β”œβ”€ strip-ansi@3.0.1
β”œβ”€ strip-bom@2.0.0
β”œβ”€ strip-color@0.1.0
β”œβ”€ strip-dirs@2.1.0
β”œβ”€ strip-indent@1.0.1
β”œβ”€ strip-outer@1.0.1
β”œβ”€ stylehacks@4.0.3
β”œβ”€ supports-color@5.5.0
β”œβ”€ svgo@1.3.0
β”œβ”€ tapable@1.1.3
β”œβ”€ tar-stream@1.6.2
β”œβ”€ tcp-port-used@1.0.1
β”œβ”€ temp-dir@1.0.0
β”œβ”€ text-table@0.2.0
β”œβ”€ through@2.3.8
β”œβ”€ through2@2.0.5
β”œβ”€ timed-out@4.0.1
β”œβ”€ timsort@0.3.0
β”œβ”€ tiny-emitter@2.1.0
β”œβ”€ tiny-lr@1.1.1
β”œβ”€ tmp@0.0.33
β”œβ”€ to-buffer@1.1.1
β”œβ”€ to-fast-properties@2.0.0
β”œβ”€ to-regex-range@2.1.1
β”œβ”€ toml@2.3.6
β”œβ”€ tough-cookie@2.4.3
β”œβ”€ tr46@1.0.1
β”œβ”€ tree-node-cli@1.2.5
β”œβ”€ trim-newlines@1.0.0
β”œβ”€ trim-repeated@1.0.0
β”œβ”€ trim-right@1.0.1
β”œβ”€ truncate-html@1.0.3
β”œβ”€ tslib@1.10.0
β”œβ”€ tweetnacl@0.14.5
β”œβ”€ type-is@1.6.18
β”œβ”€ typedarray@0.0.6
β”œβ”€ unbzip2-stream@1.3.3
β”œβ”€ unicode-canonical-property-names-ecmascript@1.0.4
β”œβ”€ unicode-match-property-ecmascript@1.0.4
β”œβ”€ unicode-match-property-value-ecmascript@1.1.0
β”œβ”€ unicode-property-aliases-ecmascript@1.0.5
β”œβ”€ union-value@1.0.1
β”œβ”€ universalify@0.1.2
β”œβ”€ unpipe@1.0.0
β”œβ”€ unquote@1.1.1
β”œβ”€ unset-value@1.0.0
β”œβ”€ upath@1.1.2
β”œβ”€ uri-js@4.2.2
β”œβ”€ urix@0.1.0
β”œβ”€ url-parse-lax@1.0.0
β”œβ”€ use@3.1.1
β”œβ”€ util-deprecate@1.0.2
β”œβ”€ util.promisify@1.0.0
β”œβ”€ utils-merge@1.0.1
β”œβ”€ uuid@3.3.3
β”œβ”€ validate-npm-package-license@3.0.4
β”œβ”€ vary@1.1.2
β”œβ”€ vendors@1.0.3
β”œβ”€ verror@1.10.0
β”œβ”€ webidl-conversions@4.0.2
β”œβ”€ websocket-extensions@0.1.3
β”œβ”€ whatwg-url@7.0.0
β”œβ”€ which@1.3.1
β”œβ”€ wordwrap@0.0.2
β”œβ”€ worker-rpc@0.1.1
β”œβ”€ xml@1.0.1
β”œβ”€ xmlbuilder@13.0.2
β”œβ”€ xtend@4.0.2
β”œβ”€ yamljs@0.2.10
β”œβ”€ yargs@2.3.0
└─ yauzl@2.10.0
Done in 6.78s.
Docusaurus installed in website folder!

yarn run v1.17.3
warning package.json: No license field
$ docusaurus-examples
Wrote docusaurus scripts to package.json file.

site
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ docker-compose.yml
β”œβ”€β”€ docs
β”‚   β”œβ”€β”€ doc1.md
β”‚   β”œβ”€β”€ doc2.md
β”‚   β”œβ”€β”€ doc3.md
β”‚   β”œβ”€β”€ exampledoc4.md
β”‚   └── exampledoc5.md
└── website
    β”œβ”€β”€ README.md
    β”œβ”€β”€ blog
    β”‚   β”œβ”€β”€ 2016-03-11-blog-post.md
    β”‚   β”œβ”€β”€ 2017-04-10-blog-post-two.md
    β”‚   β”œβ”€β”€ 2017-09-25-testing-rss.md
    β”‚   β”œβ”€β”€ 2017-09-26-adding-rss.md
    β”‚   └── 2017-10-24-new-version-1.0.0.md
    β”œβ”€β”€ core
    β”‚   └── Footer.js
    β”œβ”€β”€ package.json
    β”œβ”€β”€ pages
    β”‚   └── en
    β”‚       β”œβ”€β”€ help.js
    β”‚       β”œβ”€β”€ index.js
    β”‚       └── users.js
    β”œβ”€β”€ sidebars.json
    β”œβ”€β”€ siteConfig.js
    β”œβ”€β”€ static
    β”‚   β”œβ”€β”€ css
    β”‚   β”‚   └── custom.css
    β”‚   └── img
    β”‚       β”œβ”€β”€ favicon.ico
    β”‚       β”œβ”€β”€ oss_logo.png
    β”‚       β”œβ”€β”€ undraw_code_review.svg
    β”‚       β”œβ”€β”€ undraw_monitor.svg
    β”‚       β”œβ”€β”€ undraw_note_list.svg
    β”‚       β”œβ”€β”€ undraw_online.svg
    β”‚       β”œβ”€β”€ undraw_open_source.svg
    β”‚       β”œβ”€β”€ undraw_operating_system.svg
    β”‚       β”œβ”€β”€ undraw_react.svg
    β”‚       β”œβ”€β”€ undraw_tweetstorm.svg
    β”‚       └── undraw_youtube_tutorial.svg
    └── yarn.lock
Done in 0.12s.
root@oraculo:/tmp/site# ls
docker-compose.yml  Dockerfile  docs  website
cd website
root@oraculo:/tmp/site/website# yarn start --host 127.0.0.1 --port 3000
yarn run v1.17.3
warning package.json: No license field
$ docusaurus-start --host 127.0.0.1 --port 3000
LiveReload server started on port 39465
Docusaurus server started on port 30744
gustavosavio commented 5 years ago

The same behavior here...

maurodelazeri commented 5 years ago

Using docker same thing

# docker-compose up
Creating network "www-zinnion_default" with the default driver
Creating www-zinnion_docusaurus_1_b473e225e4c5 ... done
Attaching to www-zinnion_docusaurus_1_b3ea8d9c7d79
docusaurus_1_b3ea8d9c7d79 | yarn run v1.6.0
docusaurus_1_b3ea8d9c7d79 | warning package.json: No license field
docusaurus_1_b3ea8d9c7d79 | $ docusaurus-start
docusaurus_1_b3ea8d9c7d79 | LiveReload server started on port 37854
docusaurus_1_b3ea8d9c7d79 | Docusaurus server started on port 19084

it supposed to start on 3000 if not specified

# docker ps
CONTAINER ID        IMAGE                    COMMAND             CREATED              STATUS              PORTS                                              NAMES
b865fae9b801        www-zinnion_docusaurus   "yarn start"        About a minute ago   Up About a minute   0.0.0.0:3000->3000/tcp, 0.0.0.0:35729->35729/tcp   www-zinnion_docusaurus_1_b3ea8d9c7d79
maurodelazeri commented 5 years ago

Found what is causing this problem...

The version of yarn...

I have v1.17.0 on a different computer and it works, but with the latest yarn v1.17.3 it doesn't

Mauros-MacBook-Pro:website maurodelazeri$ yarn start --host 127.0.0.1 --port 3007
yarn run v1.17.0
warning package.json: No license field
$ docusaurus-start --host 127.0.0.1 --port 3007
LiveReload server started on port 35730
Docusaurus server started on port 3007
gustavosavio commented 5 years ago

I trying with npm in 6.10.3 version and this problem continue with the release 1.12. However with release 1.11.1 (Docusaurus) it works.

endiliey commented 5 years ago

The only change between 1.11.x and 1.12.x is the version of portfinder package. No other code seems to touch the port code :o

seems like dep bug https://github.com/http-party/node-portfinder/issues/90 https://github.com/http-party/node-portfinder/issues/87 https://github.com/http-party/node-portfinder/issues/84

benblank commented 5 years ago

I am unable to reproduce this with docusaurus-init@1.12.0 and docusaurus@1.13.0. According to the linked issues, this bug appears to have been reverted upstream.

endiliey commented 5 years ago

deps bug. Have been patched though