Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

about example ipfs-101 #977

Closed
kappabooom opened this issue Sep 2, 2017 · 7 comments · Fixed by #982
Closed

about example ipfs-101 #977

kappabooom opened this issue Sep 2, 2017 · 7 comments · Fixed by #982
Labels
exp/novice Someone with a little familiarity can pick up kind/bug A bug in existing code (including security flaws) P3 Low: Not priority right now

Comments

@kappabooom
Copy link

  • Version: 0.25.4
  • Platform: macOS X
  • Subsystem:

Type: Question

Severity: medium

Description:

I operated the ipfs-101 by the tutorials, but when I key npm install ipfs async , the error appear
image

Steps to reproduce the error:

@daviddias
Copy link
Member

Looks like that is a new npm feature. more info here: http://thisdavej.com/node-newbie-error-npm-refusing-to-install-package-as-a-dependency-of-itself/

Try doing npm init inside that folder and check if it works. If that is the case, I'll add a package.json to the example.

@kappabooom
Copy link
Author

yes! I can npm install ipfs async after npm init.
But when I run node 1.js, found that I can't cat the hello.txt
image
it has run about 10 mins, but nothing appear.

@daviddias
Copy link
Member

daviddias commented Sep 3, 2017

@kappabooom my bad. Fixed in https://github.com/ipfs/js-ipfs/pull/982/files

Let me know if it works for you! :)

@daviddias daviddias added kind/bug A bug in existing code (including security flaws) exp/novice Someone with a little familiarity can pick up P3 Low: Not priority right now labels Sep 3, 2017
@kappabooom
Copy link
Author

thanks! it work!!!

@kappabooom
Copy link
Author

@diasdavid I have another question. In example ipfs-101, did I really put the file on the distributed web? because I can cat hello.txt on https://ipfs.io/ipfs/QmXgZAUWd8yo4tvjBETqzUy3wLx5YRzuDwUQnBwRGrAmAo.
but when I add another file to ipfs, I can't cat my new text on https://ipfs.io/ipfs/QmfLEdmhPkPexiQ5JxFiXwgY4MHCWXP2D4m5WoX8jvPdFo

@daviddias
Copy link
Member

yes, you really shared a file to the distributed web :) if this was the first, congratulations! 🎉

When you add another file to IPFS, do you leave your node running? Remember, IPFS is not like Cloud Storage, it is a FileSystem that uses Content Addressing to find data on the network, but it doesn't replicate data automatically for you, you need to ensure there are copies accessible.

@kappabooom
Copy link
Author

@diasdavid I am not sure that did I keep my node on,but I vim 1.js //stream.on('end', process.exit),so I think it is still on.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
exp/novice Someone with a little familiarity can pick up kind/bug A bug in existing code (including security flaws) P3 Low: Not priority right now
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants