New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
local npm install: "no such file or directory node_modules/swagger-editor-dist/" #13
Comments
I confirm this issue when installing the swagger-editor-live package locally However I noticed that when I install it locally there's another module installed: |
I did not have this issue, but I will double check. Thank you for the report. |
Did you remove the global installation of swagger-editor-live npm package before testing it? this is what my package-lock.json shows:
|
Hi @khelkun I've never tested it as a package of another package (your case). I only tested it as a global package. I think I know what the issue is. It looks like swagger-editor-live is looking for "swagger-editor-dist" in an incorrect path. It should look for "swagger-editor-dist" in your "node_modules", but it's looking for that in /node_modules/swagger-editor-live/node_modules. I will have patch soon. Thank you for the report! |
That's right, thank you for your time and this package which is really useful to me! |
Sorry for the delay in the fix. I've just released 2.1.8 with a fix. Thank you for the report again! |
Thanks! the npm local install works fine now. If you're interested in this, I tried npm & yarn and for some reason something goes wrong with yarn: it doesn't install swagger-editor-dist package and the yarn.lock file doesn't mention swagger-editor-dist as a dependency of swgger-editor-live. I don't now much about yarn but once again it can be related to my environment,
But package-lock.json of npm does mention swagger-editor-dist dependency:
|
That's interesting. I should start using yarn instead :) I guess old habit does not go away that easily. I will try this over the weekend. Thank you for the report! I will leave it open until I figure out yarn issue. |
I started to use swagger-editor-live and it does exactly what I was looking for swagger-editor version 3. It works but I had a strange issue that I wanted to report. Sorry if the issue is related to my environment but I don't think it is.
npm install swagger-editor-live --save-dev
"swagger:edit": "swagger-editor-live swagger/swagger.yaml --port=8000"
npm run swagger:edit
Actually the only dependency that was existing in
/home/me/myproject/node_modules/swagger-editor-live/node_modules/
wascommander
(weird).So I did that:
And now everything's fine. I just wanted to let you know in case something would be wrong uin the npm released package of swagger-editor-live. If not then please forgive me and thanks for this useful module.
The text was updated successfully, but these errors were encountered: