Comments (9)
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.
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.
Even tried this on 6.7.0/3.10.7 and still works.
from nexmo-cli.
You wouldn't expect prepublish
to run upon install. But apparently it's does "by design" npm/npm#3059
from nexmo-cli.
@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.
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.
@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.
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.
@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)
- "exp" should be a number of seconds when generating JWTs
- Recreating a user with the same name returns an irrelevant error message.
- Better error message for failed app link HOT 1
- Support partial app IDs HOT 4
- Display App Names in Verbose Numbers List
- npm `prepublish` scripts are deprecated
- Support host overriding for both api.nexmo and rest.nexmo
- nexmo ml <conversation-id> doesn't show member id HOT 1
- nexmo cc cli issue HOT 1
- [Feature] list users in a nexmo application
- Returns empty list of members in a conversation when there are actual members HOT 2
- Error when creating messages applications HOT 2
- Prompt when creating a new app in a folder already hosting a .nexmo-app
- Define nexmo setup structure in error message HOT 1
- price:country fails HOT 2
- Windows Powershell - "running scripts is disabled on this system" when running `nexmo`
- Creation of application fails when only messages capability is needed. HOT 2
- Hide API_SECRET by default HOT 1
- Error in Validator.Response : Method Failed HOT 2
- nexmo-2.9.1.tgz: 8 vulnerabilities (highest severity is: 9.8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nexmo-cli.