You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the bit-docs-website to get to know the inner workings of bit-docs and experiment with it.
Sadly the npm install command fails:
PS C:\Users\c.duivis\Desktop\bit-docs-website-master> npm install
> bit-docs-website@0.0.1 preinstall C:\Users\c.duivis\Desktop\bit-docs-website-master
> [ -f docs/modules/bit-docs/package.json ] || git submodule update --init
'[' is not recognized as an internal or external command,
operable program or batch file.
fatal: Not a git repository (or any of the parent directories): .git
npm ERR! code ELIFECYCLE
npm ERR! errno 128
npm ERR! bit-docs-website@0.0.1 preinstall: `[ -f docs/modules/bit-docs/package.json ] || git submodule update --init`
npm ERR! Exit status 128
npm ERR!
npm ERR! Failed at the bit-docs-website@0.0.1 preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\c.duivis\AppData\Roaming\npm-cache\_logs\2018-01-31T15_50_17_754Z-debug.log
It looks like the syntax that is used inside the install script is not recognized by PowerShell on Windows.
The text was updated successfully, but these errors were encountered:
cduivis
changed the title
installing bit-docs in powershell fails
installing bit-docs in Windows PowerShell fails
Jan 31, 2018
@cduivis[ in [ -f docs/modules/bit-docs/package.json ] is a synonym of the POSIX shell test utility. Unless you're running cygwin/babun or a linux VM, Windows doesn't have a POSIX shell.
To get past this limitation on Windows, you could remove the preinstall npm run-script and just manually execute git submodule update --init whenever the submodules in docs/modules haven't been initialized yet. However, you may run into other problems on Windows once you get past this step.
Ah ok, that's a shame.
We where looking at using this project as a platform to use for documentation of multiple coding/programming languages (Less, Sass, CSS, JavaScript, MarkDown, etc..), but because we can't run it on a Windows platform it's not useful in our development flow.
A half your after this issue was created, we found out the existence of DocFx which does seems extensible enough to support all of these languages. We currently have shifted our focus there.
It supports C#, MarkDown and JS files (I just listed the languages useful for us).
I know this project is currently still an internal project for you guys.
But for a document generation project like this I think I would be nice if it worked cross platform.
@leoj3n I'll leave it up to you to close this topic or not.
I'm trying to use the bit-docs-website to get to know the inner workings of bit-docs and experiment with it.
Sadly the npm install command fails:
It looks like the syntax that is used inside the install script is not recognized by PowerShell on Windows.
The text was updated successfully, but these errors were encountered: