-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Swagger-Editor npm install on macOS Catalina fails #2117
Copy link
Copy link
Closed
Description
Q&A (please complete the following information)
- OS: [e.g. macOS] - macOS Catalina
- Browser: [e.g. chrome, safari]
- Version: [e.g. 22]
- Method of installation: [e.g. npm, dist assets] - npm
- Swagger-Editor version: [e.g. 3.10.0] - 3.8.0
- Swagger/OpenAPI version: [e.g. Swagger 2.0, OpenAPI 3.0]
Content & configuration
Example Swagger/OpenAPI definition:
# your YAML hereSwagger-Editor configuration options:
SwaggerEditor({
// your config options here
})?yourQueryStringConfig
Describe the bug you're encountering
To reproduce...
Steps to reproduce the behavior:
- Install nvm, nodejs
brew install nvm
mkdir ~/.nvm
code ~/.zshrc
. ~/.zshrc
nvm ls-remote
nvm install v6.17.1
- install
swagger-editorand see error
nvm use v6.17.1
npm install swagger-editor
ls node_modules
cd node_modules/swagger-editor
npm start
Expected behavior
Screenshots
Additional context or thoughts
> [email protected] start /Users/dove/Shell/GitHub/IBMCloudOps/Shentu/node_modules/swagger-editor
> npm-run-all --parallel serve-static open-static
> [email protected] open-static /Users/dove/Shell/GitHub/IBMCloudOps/Shentu/node_modules/swagger-editor
> node -e 'require("open")("http://localhost:3001")'
> [email protected] serve-static /Users/dove/Shell/GitHub/IBMCloudOps/Shentu/node_modules/swagger-editor
> http-server -i -a 0.0.0.0 -p 3001
/Users/dove/Shell/GitHub/IBMCloudOps/Shentu/node_modules/swagger-editor/node_modules/open/index.js:16
const wslToWindowsPath = async path => {
^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:549:28)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at [eval]:1:1
npm ERR! Darwin 19.2.0
npm ERR! argv "/Users/david/.nvm/versions/node/v6.17.1/bin/node" "/Users/david/.nvm/versions/node/v6.17.1/lib/node_modules/npm/bin/npm-cli.js" "run" "--swagger-editor:deps_check_dir=.deps_check" "open-static"
npm ERR! node v6.17.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] open-static: `node -e 'require("open")("http://localhost:3001")'`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] open-static script 'node -e 'require("open")("http://localhost:3001")''.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the swagger-editor package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node -e 'require("open")("http://localhost:3001")'
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs swagger-editor
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls swagger-editor
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/dove/Shell/GitHub/IBMCloudOps/Shentu/node_modules/swagger-editor/npm-debug.log
ERROR: "open-static" exited with 1.
npm ERR! Darwin 19.2.0
npm ERR! argv "/Users/david/.nvm/versions/node/v6.17.1/bin/node" "/Users/david/.nvm/versions/node/v6.17.1/bin/npm" "start"
npm ERR! node v6.17.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `npm-run-all --parallel serve-static open-static`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'npm-run-all --parallel serve-static open-static'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the swagger-editor package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm-run-all --parallel serve-static open-static
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs swagger-editor
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls swagger-editor
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/dove/Shell/GitHub/IBMCloudOps/Shentu/node_modules/swagger-editor/npm-debug.log
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels