WebToEpub
WebToEpub copied to clipboard
Unable to start
After running npm run build,Will report an error
@you-sunshine
Error suggests you're checking out in unix mode. But eslint is expecting the lines to be Windows style. https://stackoverflow.com/questions/37826449/expected-linebreaks-to-be-lf-but-found-crlf-linebreak-style
@you-sunshine
This will work as a temporary workaround.
--- a/package.json
+++ b/package.json
@@ -19,7 +19,7 @@
"up": "npm add jszip@latest && npm install",
"postinstall": "copyfiles -V -u 1 node_modules/jszip/dist/jszip.min.js plugin",
"test": "http-server -o unitTest/Tests.html",
- "lint": "cd eslint && node pack.js && eslint packed.js",
+ "lint": "cd eslint && node pack.js && eslint --fix packed.js",
"build": "cd eslint && node pack.js",
"release": "node eslint/release.js"
},
Or, you could use npm run build, which doesn't run eslint.
abandoned from issue creater.