ulivz / vuepress-plugin-export

Export your VuePress site to a PDF file
MIT License
90 stars 17 forks source link

Plugin Loading Issue #5

Open ghost opened 5 years ago

ghost commented 5 years ago

After installing Vuepress 1.x and the plugin, trying to run the command leads to the following:

At C:\Users\domin\AppData\Local\Yarn\bin\vuepress.ps1:5 char:13
+     *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
+             ~
Unexpected token ')' in expression or statement.
At C:\Users\domin\AppData\Local\Yarn\bin\vuepress.ps1:8 char:3
+ if [ -x "$basedir/pwsh" ]; then
+   ~
Missing '(' after 'if' in if statement.
At C:\Users\domin\AppData\Local\Yarn\bin\vuepress.ps1:8 char:5
+ if [ -x "$basedir/pwsh" ]; then
+     ~
Missing type name after '['.
At C:\Users\domin\AppData\Local\Yarn\bin\vuepress.ps1:9 char:20
+ ... edir/pwsh"  "$basedir/../Data/global/node_modules/.bin/vuepress.ps1"  ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token '"$basedir/../Data/global/node_modules/.bin/vuepress.ps1"' in expression or statement.
At C:\Users\domin\AppData\Local\Yarn\bin\vuepress.ps1:9 char:77
+ ... /pwsh"  "$basedir/../Data/global/node_modules/.bin/vuepress.ps1" "$@"
+                                                                      ~~~~
Unexpected token '"$@"' in expression or statement.
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : UnexpectedToken

Can anyone help me out with troubleshooting this?

Cheers!