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

Reply via email to