Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm start failed #14

Closed
sayume opened this issue May 2, 2015 · 2 comments
Closed

npm start failed #14

sayume opened this issue May 2, 2015 · 2 comments

Comments

@sayume
Copy link

sayume commented May 2, 2015

when I launch the container, it fails with message:

npm ERR! Linux 3.18.11-tinycore64
npm ERR! argv "node" "/usr/local/bin/npm" "start"
npm ERR! node v0.12.2
npm ERR! npm  v2.8.4
npm ERR! path /usr/src/app/package.json
npm ERR! code ENOENT
npm ERR! errno -2

npm ERR! enoent ENOENT, open '/usr/src/app/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! Please include the following file with any support request:
npm ERR!     /usr/src/app/npm-debug.log

It seems npm can not open package.json file.

@chorrell
Copy link
Contributor

chorrell commented May 4, 2015

Is this for the Onbuild version?

@chorrell
Copy link
Contributor

Hi, so if this was for the Onbuild version, the image assumes you have your node application in /usr/src/app/ with it's own package.json file. That's why you're getting that error.

For usage of the Onbuild variant, see this: https://github.com/docker-library/docs/tree/master/node#create-a-dockerfile-in-your-nodejs-app-project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants