Skip to content
This repository was archived by the owner on Dec 15, 2020. It is now read-only.
This repository was archived by the owner on Dec 15, 2020. It is now read-only.

npm dependency version creates conflict with np tool #62

@bantic

Description

@bantic

I think this issue can safely be closed as "not ember-cli-release's problem" if you are inclined, but I wanted to point it out since it bit me and might bite others.
We are using np to create new release tags for an ember addon, and I noticed that np was complaining that the version of npm was incorrect:

npm@3.5.4 has known issues publishing when running Node.js 6. Please upgrade npm or downgrade Node and publish again. https://github.com/npm/npm/issues/5082

That was confusing because I have a newer version of npm (4.1.2) installed, but I eventually realized that because ember-cli-release has a dependency on npm "~3.5.2", that's why np finds npm@3.5.4. I've fixed that problem locally, but I thought it is worth pointing out both that this dependency causes a conflict with np and also that this version range for npm is known to have some publishing bugs (see this very long thread: npm/npm#5082 — in short the buggy npm versions are 3.0.0 to 3.10.0, np checks for that range in its code).

Upgrading the npm dependency would avoid those publishing bugs (which seems like a good thing), and also avoid the conflict with np (which probably matters less — since ember-cli-release does the same thing as np it was my mistake to have them both in my package.json at the same time).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions