Skip to content
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

Step 8 - "Publish" doesn't work on Windows 10. Localhost:15443 not responding #103

Open
brentpayton opened this issue Feb 5, 2017 · 6 comments

Comments

@brentpayton
Copy link

Step 8 consistently fails on Windows 10 but passes on MacOS. It appears that the local server on port 15443 has exited or otherwise isn't responding when this failure occurs.

npm-debug.log.txt

@brentpayton
Copy link
Author

NPM version 4.1.2
Node version 6.9.4

@watilde watilde added the bug label Feb 5, 2017
@watilde
Copy link
Member

watilde commented Feb 5, 2017

Hello 👋

Thanks for reporting this. The port number is declared as hard cording, so I put a bug label on this issue.

$ grep -irl 15443 .
./assets/registry/wrappy/body.json
./lib/registry.js
./workshop-npmrc

As a solution, we have two options:

  • Find an available port, and use it in the files that should be created dynamically
  • Display an error in exercises if it's used

I will consider a better way, but I will be glad to support anyone including you if someone has an interest in working on this.

@watilde
Copy link
Member

watilde commented Feb 16, 2017

Nice package to create a patch with https://github.com/sindresorhus/get-port

@ShadowRZ
Copy link

ShadowRZ commented Apr 14, 2017

But I got:

npm ERR! publish Failed PUT 404
npm ERR! code E404
npm ERR! 404 missing : @shadowrz/sample-npm-package
npm ERR! 404
npm ERR! 404  '@shadowrz/sample-npm-package' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2017-04-14T10_53_14_504Z-debug.log

@brentpayton @watilde
EDIT: When I access registry over HTTP:

{"error":"missing"}

@watilde
Copy link
Member

watilde commented Apr 14, 2017

@ShadowRZ It seems a different issue. Could you please open another issue and share your npm-debug.log?

@watilde
Copy link
Member

watilde commented Apr 14, 2017

This issue was confirmed as a bug already as it's labelled. how-to-npm doesn't work if the user is using the same port number(15443).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants