At first, I was angry when stumbling on this post. Now, I find this funny.
Frank, what is your background ? I think people would grasp your needs better if you explained you come from a PHP backend world, or Java JEE struts world, or whatever. Re-reading your original question made me realise you clearly misunderstood some key concepts about javascript, node.js and UNIX. So i think the answer you were actually looking for was "a node project is not a file, it's a folder". I think you could have figured the rest without much else. I have very few doubts you are not stupid. However, people here got angry at you not because of your ignorance of the matter, but because of your refusal to even try and your behaviour sometimes resembling that of a 13 years old. It is what makes people angry in general. I should also note that saying "I'm a lot on stackoverflow and people are helpful" is a lot like saying "I'm a lot on 9gag and they've got all the memes". It's a blatant misunderstanding of how tech knowledge gets created and gathered. I will finish with my suggestions for your next question : - make use of a single question mark per question - define what you are trying to achieve as a whole - define what you are trying to achieve in particular - try stuff - define what you tried - define how it failed, preferably with a console output - show some code example of what you tried - be nice to people Note that that very last point can apply to much broader aspects of your life and will most of the time bring intelligent conversation, because nice people make other people feel safe. On Friday, 28 March 2014 06:39:27 UTC+1, Jeff Caldwell wrote: > > You know, Frank, I'm very new to all of this myself but one might have > guessed that there's some relationship between how Node handles modules and > package.json files. Whoah! It turns out that what Ben linked to was a whole > lot of useful information that could help you with learning all about what > you were asking (and some things related to it). Specifically > http://nodejs.org/docs/latest/api/modules.html#modules_folders_as_modules. > > JavaScript, Node and everything that's growing around both is a very > complex subject. You need to accept that sometimes information suggested to > you won't immediately appear to be relevant to what you're asking. This is > my first post to this group even though I've been reading through for the > past month,and I'm happy to use it to suggest that you apologize and > attempt a new approach to learning and accepting answers to your questions. > > On Wednesday, March 26, 2014 10:49:42 AM UTC-4, Frank Z wrote: >> >> I bought a book on Node.js since I'm teaching myself backend development, >> and in this book the author talks about the importance of package.json >> files. He emphasizes that it's great for keeping track of module >> dependencies in a json format, and installing them all at once using "npm >> install" in a terminal. So far so good... >> >> But how do I assign my package.json to a particular node.js file? Just >> stick it in the same folder??? Does it not clash with the package.json file >> that comes with locally installed npm modules? Do I just make the Name key >> in the json file the exact same as my js file? >> >> Maybe the package.json is simply for putting your project on npm? >> >> I'm totally confused.... >> >> Would be cool if there was a node.js expert I could chat with over skype. >> I'm so lost. >> > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
