cmfcmf / docusaurus-search-local

Offline / Local Search for Docusaurus v2. Try it live at:
https://cmfcmf.github.io/OpenWeatherMap-PHP-API/
MIT License
446 stars 67 forks source link

Need to add one more installation step #15

Closed ivancheban closed 4 years ago

ivancheban commented 4 years ago

:unicorn: After you install this npm package, you need to npm install before building your project with npm run build.

cmfcmf commented 4 years ago

Hi @ivancheban, I'm not 100% sure I can follow what you mean.The Readme says that you first need to npm install @cmfcmf/docusaurus-search-local and then can run npm run build. Are you suggesting to run npm install in between these two commands? I don't think that's necessary.

ivancheban commented 4 years ago

image The readme Installation section says that you need to npm install @cmfcmf/docusaurus-search-local, that's all. The second step should be npm install. Otherwise, if you execute `npm run build', you'll get an error.

ivancheban commented 4 years ago

To install docusaurus-search-local:

  1. Go to your root folder.
  2. yarn add @cmfcmf/docusaurus-search-local or npm install @cmfcmf/docusaurus-search-local.
  3. npm install.
  4. npm run build.
cmfcmf commented 4 years ago

I'm sorry, I still can't reproduce your issue. I tried the following commands to setup a new installation and everything worked without an issue:

npx @docusaurus/init@next init my-website classic
yarn add @cmfcmf/docusaurus-search-local
cd my-website
vim docusuaurus.config.js # add plugin to config
yarn start