Skip to content

Conversation

@alexkli
Copy link
Contributor

@alexkli alexkli commented Apr 10, 2020

Fixes #22.

Also print better error message if no openwhisk credentials are found/specified.

No unit test yet. Might add one tomorrow using a docker container doing "fresh" npm installs...

alexkli added 6 commits April 9, 2020 22:55
had to use peerDependencies in package.json as optionalDependencies
are still installed by default and ngrok fails without --unsafe-perm=true
even if in an optionalDependencies
@alexkli alexkli requested review from dgrove-oss and rabbah April 10, 2020 07:10
```

The dependency `ngrok` requires full write permission in `/usr/local/lib/node_modules` during its custom install phase. This is a [known ngrok issue](https://github.com/inconshreveable/ngrok/issues/429).
The dependency `ngrok` requires full write permission in `/usr/local/lib/node_modules` during its custom install phase. This is a [known ngrok issue](https://github.com/bubenshchykov/ngrok/issues/87).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering if the sudo npm install... command just above this block should be changed to just installing ngrok instead of openwhisk/debug?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the normal install command. This is the troubleshooting section which I kept in for folks still having an older version...

This PR was all about making the normal command easier from the very unusual

npm install -g @openwhisk/wskdebug --unsafe-perm=true

to the usual

npm install -g @openwhisk/wskdebug

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right. guess it makes sense to leave comment in for a little while (or until the next release). without the history, it just reads a little oddly since it is telling people about problems with an install mode that isn't mentioned anywhere else in the doc

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, will remove after the next release.

@alexkli alexkli merged commit 34f84e8 into master Apr 10, 2020
@alexkli alexkli deleted the optional-ngrok branch April 10, 2020 23:34
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

Successfully merging this pull request may close these issues.

make ngrok an optional dependency

3 participants