lonekorean/wordpress-export-to-markdown

installation: "npm install && node index.js" seem to be an invalid command in Windows

sdudnic opened this issue · 2 comments

Windows, cloned the repository then followed the readme:

PS C:\MyProjects\GitHub\wordpress-export-to-markdown> npm install && node index.js
At line:1 char:13
+ npm install && node index.js
+             ~~
The token '&&' is not a valid statement separator in this version.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : InvalidEndOfLine

Yes, this is invalid in PowerShell. However, you can do something similar with a semicolon.

PS> npm install; node index.js

I say similar, because it doesn't actually check the return value of the first statement, unlike &&.

Edit: Seems you can do this in PowerShell 7.
https://github.com/PowerShell/PowerShell/blob/master/CHANGELOG/7.0.md#700-preview5---2019-10-23

I mean, the readme is not universal then. For Windows users there should be another readme?