dale!
Thanks a lot!
yes, I did run both commands, BUT NOT inside the project directory!

great help.. cheers

On Mar 31, 12:11 am, dale tan <[email protected]> wrote:
> did you try doing
>
> npm install express -g
>
> and did you run `npm install -d` inside the project directory?
>
> do you have your folders set up correctly in your $PATH?
>
>
>
>
>
>
>
>
>
> On Fri, Mar 30, 2012 at 5:05 PM, jojojo <[email protected]> wrote:
> > hi everybody
> > I am trying to install express framework. I installed it but it is not
> > working, the docs say I should run   {npm install -d}, but when I do
> > that I get an error saying: "ENOENT, no such file or directory '/root/
> > NODE/package.json'"
>
> > $ npm install -d
>
> > node version is v0.6.12
> > npm version is 1.1.4
>
> > npm info it worked if it ends with ok
> > npm info using [email protected]
> > npm info using [email protected]
> > npm ERR! Couldn't read dependencies.
>
> > npm ERR! Error: ENOENT, no such file or directory '/root/NODE/
> > package.json'
> > npm ERR! You may report this log at:
> > npm ERR!     <http://github.com/isaacs/npm/issues>
> > npm ERR! or email it to:
> > npm ERR!     <[email protected]>
> > npm ERR!
> > npm ERR! System Linux 2.6.38-8-generic
> > npm ERR! command "node" "/usr/local/bin/npm" "install" "-d"
> > npm ERR! cwd /root/NODE
> > npm ERR! node -v v0.6.12
>
> > ----------------
> > Also:
> > I tried express and it created the project code, but when I run it:
> > {node app.js}, it gives me another error:
> > node.js:201
> >        throw e; // process.nextTick error, or 'error' event on first
> > tick
> >              ^
> > Error: Cannot find module 'express'
> >    at Function._resolveFilename (module.js:332:11)
> >    at Function._load (module.js:279:25)
> >    at Module.require (module.js:354:17)
> >    at require (module.js:370:17)
> >    at Object.<anonymous> (/root/NODE/cardsnode/app.js:6:15)
> >    at Module._compile (module.js:441:26)
> >    at Object..js (module.js:459:10)
> >    at Module.load (module.js:348:31)
> >    at Function._load (module.js:308:12)
> >    at Array.0 (module.js:479:10)
>
> > npm ERR! npm -v 1.1.4
> > npm ERR! path /root/NODE/package.json
> > npm ERR! code ENOENT
> > npm ERR! message ENOENT, no such file or directory '/root/NODE/
> > package.json'
> > npm ERR! errno {}
> > npm ERR!
> > npm ERR! Additional logging details can be found in:
> > npm ERR!     /root/NODE/npm-debug.log
> > npm not ok
>
> > --
> > 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
>
> --
> --
> CONFIDENTIALITY NOTICE: This e-mail transmission, and any documents,
> files or previous e-mail messages attached to it may contain confidential
> information that is legally privileged and is intended for the designated
> recipient only. If you have received it in error, please notify the sender
> immediately and delete the original. Any other use of the email by you is
> STRICTLY PROHIBITED.

-- 
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

Reply via email to