docsify-cli icon indicating copy to clipboard operation
docsify-cli copied to clipboard

Someone please help me run Docsify on windows, I'm confused.

Open silvererudite opened this issue 6 years ago • 9 comments

I have installed Docsify using npm then I see there are 3 folders, namely docsify, docsify-cli, docsify-server-renderer. Now what do I do next? i tried to create a folder and initialize it using command line but it says docsify is not recognized as internal/ external command even though I installed it. The getting started page on the Docsify site is confusing to me. It would be a great if someone would just tell me initial steps on how to get started on Windows environment.

silvererudite avatar Sep 06 '19 17:09 silvererudite

what was your installlation scope ?

you need to install it globally

Check the docs https://docsify.js.org/#/quickstart

anikethsaha avatar Nov 16 '19 19:11 anikethsaha

@anikethsaha I'm experiencing the same install issue. node version - v10.16.0 npm version - 6.12.1 (Not sure if the version matters)

step 1 - 'npm i docsify-cli -g' step 2 - 'docsify init ./docs'

result - ''docsify' is not recognized as an internal or external command, operable program or batch file.'

I'm following the steps seen on there. https://docsify.js.org/#/quickstart

Zurdge avatar Dec 16 '19 08:12 Zurdge

Can you share the versions for docsify-cli and your os!

anikethsaha avatar Dec 21 '19 07:12 anikethsaha

docsify-cli version is unknown because it can't be installed. OS is windows 10

Zurdge avatar Dec 27 '19 17:12 Zurdge

docsify-cli version is unknown because it can't be installed.

npm list -g --depth=0

Also, try installing it again and check. Better uninstall the global Cli and do it .

anikethsaha avatar Dec 27 '19 18:12 anikethsaha

Re-installed Node and now everything works as it should.

Zurdge avatar Dec 30 '19 11:12 Zurdge

We are facing a slightly different issue. First we got the docsify not recognized error. So we opened the command prompt in Admin mode and the error went away. The site built successfully and we got a message that its up on http://localhost:5000. However, when I run the localhost:5000, it doesn't show the default text from Readme.md file. The site appears blank. Can someone please help? Thanks in Advance!

AnujaChangede avatar Feb 24 '21 11:02 AnujaChangede

'npx docsify init ./docs' did work for me

Uggeli avatar Aug 16 '21 06:08 Uggeli

I have to use 'npx docsify-cli init ./docs' and then 'npx docsify-cli serve ./docs'

elgransan avatar Feb 05 '22 20:02 elgransan

Thank you @elgransan! It works perfectly for me

Aahil13 avatar Jul 28 '23 23:07 Aahil13