Giter Site home page Giter Site logo

Comments (9)

leggetter avatar leggetter commented on July 30, 2024

I've tried to reproduce this with Node v6.7.0 and npm v3.10.8 and the install succeeds. I don't have any modules installed as global and no local modules installed.

Anybody else?

from nexmo-cli.

cbetta avatar cbetta commented on July 30, 2024

I tried in Node 6.7.0 and NPM 3.10.3 and it worked fine.

Also prepublish should not be called on install should it?

from nexmo-cli.

cbetta avatar cbetta commented on July 30, 2024

Even tried this on 6.7.0/3.10.7 and still works.

from nexmo-cli.

leggetter avatar leggetter commented on July 30, 2024

You wouldn't expect prepublish to run upon install. But apparently it's does "by design" npm/npm#3059

from nexmo-cli.

cbetta avatar cbetta commented on July 30, 2024

@leggetter we're not running NPM 1.2.0 though, and that issue is quite old.

Regardless: unless we can replicate this issue across multiple machines it's going to be hard to pinpoint the issue. I guess guidance for now for anyone having an issue is to look at their NPM version and upgrade?

from nexmo-cli.

leggetter avatar leggetter commented on July 30, 2024

The debug log of failure shows that the version of NPM isn't an old version:

2 info using [email protected]
3 info using [email protected]

I wonder if the install was performed locally?!
https://docs.npmjs.com/misc/scripts (see prepublish)

In the log I can see:

silly cache add   spec: '/Users/user_name/nexmo-cli'

from nexmo-cli.

cbetta avatar cbetta commented on July 30, 2024

@leggetter sure but the bug report is from an old version.

Can you try:

npm uninstall nexmo-cli
npm uninstall nexmo-cli -g

and then try reinstall again?

from nexmo-cli.

leggetter avatar leggetter commented on July 30, 2024

AFAICT this problem resulted from installing nexmo-cli from a local version pulled from GitHub. That results in the prepublish script being run which then introduces local dependencies that the person had to install. Running npm install within the nexmo-cli directory would have done that.

So I don't see this as a problem.

from nexmo-cli.

cbetta avatar cbetta commented on July 30, 2024

@leggetter yeah that makes sense. I wonder if we can detect this kind of install and do something about it to prevent it.

from nexmo-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.