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

phoenix dep package.json doesn't have a name, causes npm install to fail. #1622

Closed
sergiotapia opened this issue Mar 30, 2016 · 3 comments
Closed

Comments

@sergiotapia
Copy link

I was following this guide: https://blog.diacode.com/trello-clone-with-phoenix-and-react-pt-2 and added this file's contents to my own package.json file: https://github.com/bigardone/phoenix-trello/blob/master/package.json

When I try to npm install it, I get:

sergiotapia at Sergios-iMac in ~/Work/phoenix_trello on master [?]
$ npm install
npm ERR! addLocal Could not install /Users/sergiotapia/Work/phoenix_trello/deps/phoenix
npm ERR! Darwin 15.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.7
npm ERR! npm  v2.12.1

npm ERR! No name provided in package.json
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>


npm ERR! Please include the following file with any support request:
npm ERR!     /Users/sergiotapia/Work/phoenix_trello/npm-debug.log

And when I checked the deps/phoenix/package.json file:

{
  "repository": {
  },
  "dependencies": {
    "brunch": "^1.8.1",
    "babel-brunch": "^5.1.1",
    "clean-css-brunch": ">= 1.0 < 1.8",
    "css-brunch": ">= 1.0 < 1.8",
    "javascript-brunch": ">= 1.0 < 1.8",
    "uglify-js-brunch": ">= 1.0 < 1.8"
  }
}

No name. Is this a bug, or am I misunderstanding?

@josevalim
Copy link
Member

Your lock says you have Phoenix 1.1.4 and Phoenix 1.1.4 definitely has the name in there: https://github.com/phoenixframework/phoenix/blob/v1.1.4/package.json

Try running mix deps.update phoenix phoenix_html or removing both phoenix and phoenix_html from deps and see if the problem is addressed.

@sergiotapia
Copy link
Author

Thank you Jose, I will try and report back.

@chrismccord
Copy link
Member

Let us know if you have any new info. Closing for now. Thanks!

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

3 participants