package.json issues #378

Closed
mkey opened this Issue May 21, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@mkey

mkey commented May 21, 2012

$ nodester npm install mkey
nodester info installing to app: mkey
nodester info installing these npm packages:
nodester npm ERR! Couldn't read dependencies.
nodester npm ERR! Error: ENOENT, No such file or directory '/node/app/mkey9686-452428bce0f8f27799910bfe40cfb87e_rw/package.json'
nodester npm ERR! Report this *entire* log at:
nodester npm ERR!     <http://github.com/isaacs/npm/issues>
nodester npm ERR! or email it to:
nodester npm ERR!     <npm-@googlegroups.com>
nodester npm ERR!
nodester npm ERR! System Linux 2.6.35.14-106.53.amzn1.x86_64
nodester npm ERR! command "node" "/usr/bin/npm" "install"
nodester npm ERR! cwd /node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw
nodester npm ERR! node -v v0.4.9
nodester npm ERR! npm -v 1.0.106
nodester npm ERR! path /node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw/package.json
nodester npm ERR! code ENOENT
nodester npm ERR!
nodester npm ERR! Additional logging details can be found in:
nodester npm ERR!     /node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw/npm-debug.log
nodester npm not ok

package.json

{
  "name":"mkey",
  "author":"mkey",
  "dependencies":{  
    "express": latest,
    "jade": latest,
    "redis": latest,
    "hiredis": latest,
    "pg": latest
  },
  "node":"0.6.17"
}

Also, for some reason node keeps defaulting to 0.4.9.

@alejandro

This comment has been minimized.

Show comment Hide comment
@alejandro

alejandro May 21, 2012

Collaborator

Hi! Looks like your package.json is invalid. Try to lint it with : jsonlint. Also the nodester npm install reads the json file from the app dir, try to cd into the app dir and run it again.

Collaborator

alejandro commented May 21, 2012

Hi! Looks like your package.json is invalid. Try to lint it with : jsonlint. Also the nodester npm install reads the json file from the app dir, try to cd into the app dir and run it again.

@mkey

This comment has been minimized.

Show comment Hide comment
@mkey

mkey May 21, 2012

Oh, it appears the "latest" keyword is invalid, it appeared to work OK on heroku. I'll give it a whirl, thanks for your prompt response.

EDIT:
Yup, that fixed it

$ nodester npm install mkey
nodester info grabbing dependencies from package.json...
nodester info installing to app: mkey
nodester info installing these npm packages: express,jade,redis,hiredis,pg
nodester > hiredis@0.1.14 preinstall /node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw/node_modules/hiredis
nodester > make || gmake
nodester cd deps/hiredis && make static
nodester make[1]: Entering directory `/node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw/node_modules/hiredis/deps/hiredis'
nodester cc -std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb net.c
nodester cc -std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb hiredis.c
nodester > pg@0.6.18 install /node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw/node_modules/pg
nodester > node-waf configure build || (exit 0)
nodester cc -std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb sds.c
nodester cc -std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb async.c
nodester ar rcs libhiredis.a net.o hiredis.o sds.o async.o
nodester make[1]: Leaving directory `/node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw/node_modules/hiredis/deps/hiredis'
nodester node-waf configure build
nodester redis@0.7.2 ./node_modules/redis
nodester jade@0.26.0 ./node_modules/jade
nodester +¦¦ commander@0.5.2
nodester L¦¦ mkdirp@0.3.0
nodester express@2.5.9 ./node_modules/express
nodester +¦¦ qs@0.4.2
nodester +¦¦ mime@1.2.4
nodester L¦¦ mkdirp@0.3.0
nodester pg@0.6.18 ./node_modules/pg
nodester L¦¦ generic-pool@1.0.9
nodester hiredis@0.1.14 ./node_modules/hiredis
nodester npm http GET https://registry.npmjs.org/hiredis
nodester npm http GET https://registry.npmjs.org/jade
nodester npm http GET https://registry.npmjs.org/express
nodester npm http GET https://registry.npmjs.org/redis
nodester npm http GET https://registry.npmjs.org/pg
nodester npm http 304 https://registry.npmjs.org/jade
nodester npm http 304 https://registry.npmjs.org/redis
nodester npm http 304 https://registry.npmjs.org/pg
nodester npm http 304 https://registry.npmjs.org/hiredis
nodester npm http 304 https://registry.npmjs.org/express
nodester npm WARN excluding symbolic link lib/index.js -> jade.js
nodester npm http GET https://registry.npmjs.org/mkdirp/0.3.0
nodester npm http GET https://registry.npmjs.org/commander/0.5.2
nodester npm http 304 https://registry.npmjs.org/commander/0.5.2
nodester npm http 304 https://registry.npmjs.org/mkdirp/0.3.0
nodester npm http GET https://registry.npmjs.org/mkdirp/0.3.0
nodester npm http GET https://registry.npmjs.org/mime/1.2.4
nodester npm http GET https://registry.npmjs.org/qs
nodester npm http 304 https://registry.npmjs.org/qs
nodester npm http 304 https://registry.npmjs.org/mkdirp/0.3.0
nodester npm http 304 https://registry.npmjs.org/mime/1.2.4
nodester npm http GET https://registry.npmjs.org/generic-pool/1.0.9
nodester npm http 304 https://registry.npmjs.org/generic-pool/1.0.9
nodester Checking for program g++ or c++          : /usr/bin/g++
nodester Checking for program cpp                 : /usr/bin/cpp
nodester Checking for program ar                  : /usr/bin/ar
nodester Checking for program ranlib              : /usr/bin/ranlib
nodester Checking for g++                         : ok
nodester Checking for node path                   : not found
nodester Checking for node prefix                 : ok /usr
nodester Checking for program pg_config           : not found
nodester /node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw/node_modules/pg/wscript:16: error: The program ['pg_config'] is required
nodester Setting srcdir to                        : /node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw/node_modules/hiredis
nodester Setting blddir to                        : /node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw/node_modules/hiredis/build
nodester Checking for program g++ or c++          : /usr/bin/g++
nodester Checking for program cpp                 : /usr/bin/cpp
nodester Checking for program ar                  : /usr/bin/ar
nodester Checking for program ranlib              : /usr/bin/ranlib
nodester Checking for g++                         : ok
nodester Checking for node path                   : not found
nodester Checking for node prefix                 : ok /usr
nodester 'configure' finished successfully (0.092s)
nodester Waf: Entering directory `/node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw/node_modules/hiredis/build'
nodester [1/3] cxx: hiredis.cc -> build/default/hiredis_1.o
nodester [2/3] cxx: reader.cc -> build/default/reader_1.o
nodester [3/3] cxx_link: build/default/hiredis_1.o build/default/reader_1.o -> build/default/hiredis.node
nodester Waf: Leaving directory `/node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw/node_modules/hiredis/build'
nodester 'build' finished successfully (1.937s)

The proper package.json

{
    "name": "mkey",
    "author": "mkey",
    "version": "0.0.1",
    "private": true,
    "dependencies": {
        "express": "latest",
        "jade": "latest",
        "redis": "latest",
        "hiredis": "latest",
        "pg": "latest"
    },
    "node": "0.6.17"
}

Basically, just the quotes were missing, which only makes sense.

mkey commented May 21, 2012

Oh, it appears the "latest" keyword is invalid, it appeared to work OK on heroku. I'll give it a whirl, thanks for your prompt response.

EDIT:
Yup, that fixed it

$ nodester npm install mkey
nodester info grabbing dependencies from package.json...
nodester info installing to app: mkey
nodester info installing these npm packages: express,jade,redis,hiredis,pg
nodester > hiredis@0.1.14 preinstall /node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw/node_modules/hiredis
nodester > make || gmake
nodester cd deps/hiredis && make static
nodester make[1]: Entering directory `/node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw/node_modules/hiredis/deps/hiredis'
nodester cc -std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb net.c
nodester cc -std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb hiredis.c
nodester > pg@0.6.18 install /node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw/node_modules/pg
nodester > node-waf configure build || (exit 0)
nodester cc -std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb sds.c
nodester cc -std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb async.c
nodester ar rcs libhiredis.a net.o hiredis.o sds.o async.o
nodester make[1]: Leaving directory `/node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw/node_modules/hiredis/deps/hiredis'
nodester node-waf configure build
nodester redis@0.7.2 ./node_modules/redis
nodester jade@0.26.0 ./node_modules/jade
nodester +¦¦ commander@0.5.2
nodester L¦¦ mkdirp@0.3.0
nodester express@2.5.9 ./node_modules/express
nodester +¦¦ qs@0.4.2
nodester +¦¦ mime@1.2.4
nodester L¦¦ mkdirp@0.3.0
nodester pg@0.6.18 ./node_modules/pg
nodester L¦¦ generic-pool@1.0.9
nodester hiredis@0.1.14 ./node_modules/hiredis
nodester npm http GET https://registry.npmjs.org/hiredis
nodester npm http GET https://registry.npmjs.org/jade
nodester npm http GET https://registry.npmjs.org/express
nodester npm http GET https://registry.npmjs.org/redis
nodester npm http GET https://registry.npmjs.org/pg
nodester npm http 304 https://registry.npmjs.org/jade
nodester npm http 304 https://registry.npmjs.org/redis
nodester npm http 304 https://registry.npmjs.org/pg
nodester npm http 304 https://registry.npmjs.org/hiredis
nodester npm http 304 https://registry.npmjs.org/express
nodester npm WARN excluding symbolic link lib/index.js -> jade.js
nodester npm http GET https://registry.npmjs.org/mkdirp/0.3.0
nodester npm http GET https://registry.npmjs.org/commander/0.5.2
nodester npm http 304 https://registry.npmjs.org/commander/0.5.2
nodester npm http 304 https://registry.npmjs.org/mkdirp/0.3.0
nodester npm http GET https://registry.npmjs.org/mkdirp/0.3.0
nodester npm http GET https://registry.npmjs.org/mime/1.2.4
nodester npm http GET https://registry.npmjs.org/qs
nodester npm http 304 https://registry.npmjs.org/qs
nodester npm http 304 https://registry.npmjs.org/mkdirp/0.3.0
nodester npm http 304 https://registry.npmjs.org/mime/1.2.4
nodester npm http GET https://registry.npmjs.org/generic-pool/1.0.9
nodester npm http 304 https://registry.npmjs.org/generic-pool/1.0.9
nodester Checking for program g++ or c++          : /usr/bin/g++
nodester Checking for program cpp                 : /usr/bin/cpp
nodester Checking for program ar                  : /usr/bin/ar
nodester Checking for program ranlib              : /usr/bin/ranlib
nodester Checking for g++                         : ok
nodester Checking for node path                   : not found
nodester Checking for node prefix                 : ok /usr
nodester Checking for program pg_config           : not found
nodester /node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw/node_modules/pg/wscript:16: error: The program ['pg_config'] is required
nodester Setting srcdir to                        : /node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw/node_modules/hiredis
nodester Setting blddir to                        : /node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw/node_modules/hiredis/build
nodester Checking for program g++ or c++          : /usr/bin/g++
nodester Checking for program cpp                 : /usr/bin/cpp
nodester Checking for program ar                  : /usr/bin/ar
nodester Checking for program ranlib              : /usr/bin/ranlib
nodester Checking for g++                         : ok
nodester Checking for node path                   : not found
nodester Checking for node prefix                 : ok /usr
nodester 'configure' finished successfully (0.092s)
nodester Waf: Entering directory `/node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw/node_modules/hiredis/build'
nodester [1/3] cxx: hiredis.cc -> build/default/hiredis_1.o
nodester [2/3] cxx: reader.cc -> build/default/reader_1.o
nodester [3/3] cxx_link: build/default/hiredis_1.o build/default/reader_1.o -> build/default/hiredis.node
nodester Waf: Leaving directory `/node/app/mkey/9686-452428bce0f8f27799910bfe40cfb87e_rw/node_modules/hiredis/build'
nodester 'build' finished successfully (1.937s)

The proper package.json

{
    "name": "mkey",
    "author": "mkey",
    "version": "0.0.1",
    "private": true,
    "dependencies": {
        "express": "latest",
        "jade": "latest",
        "redis": "latest",
        "hiredis": "latest",
        "pg": "latest"
    },
    "node": "0.6.17"
}

Basically, just the quotes were missing, which only makes sense.

@mkey mkey closed this May 21, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment