question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can npm publish work for registry.js.ipfs.io?

See original GitHub issue

I have registry.js.ipfs.io setup as my registry in ~/npmrc. Whenever I npm publish I have to remember to add --registry=https://registry.npmjs.com or it fails. For js-ipfs I get the following error but I think I get a different error for other modules.

npm notice 
npm http request PUT https://registry.js.ipfs.io/ipfs
npm http 413 https://registry.js.ipfs.io/ipfs
npm ERR! registry error parsing json
npm ERR! publish Failed PUT 413
npm ERR! Unexpected token < in JSON at position 0
npm ERR! <html>
npm ERR! <head><title>413 Request Entity Too Large</title></head>
npm ERR! <body bgcolor="white">
npm ERR! <center><h1>413 Request Entity Too Large</h1></center>
npm ERR! <hr><center>nginx/1.14.0</center>
npm ERR! </body>
npm ERR! </html>

Is it possible to proxy it or configure npm with a different registry for publishing or something?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
achingbraincommented, Sep 19, 2018

I think you can also set registry in the package.json of a project to ensure it’s always published to that registry.

0reactions
achingbraincommented, Sep 20, 2018

*phew*

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm on IPFS
A local-network npm proxy on a Raspberry Pi · Cache npm modules for you · Connected to the IPFS network · Publish IPNS...
Read more >
npm-ipfs-registry-fetch - npm package - Snyk
The npm package npm-ipfs-registry-fetch was scanned for known vulnerabilities and missing license, and no issues were found. Thus the package ...
Read more >
Ipfs NPM - npm.io
Yes, however, bare in mind that there isn't a 100% stable solution to use WebRTC in Node.js, use it at your own risk....
Read more >
A Simple Guide to Publishing an npm Package - Medium
In this guide, I will walk you through the process of building and publishing a simple package to the npm registry.
Read more >
Js-ipfs local node connectivity review - Events - Fission Talk
By default js-ipfs connects to 4 *.preload.ipfs.io , 4 bootstrap.libp2p.io , and 4 delegate nodes. We have been told that those are demo ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found