lonekorean / wordpress-export-to-markdown

Converts a WordPress export XML file into Markdown files.
MIT License
1.08k stars 221 forks source link

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

Closed sdudnic closed 3 years ago

sdudnic commented 4 years ago

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
benmurden commented 4 years ago

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

sdudnic commented 3 years ago

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