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
Update user guide to add how to handle permission issue
#364
Conversation
@@ -57,6 +57,9 @@ the different pieces: | |||
* [Connectors](#connectors) | |||
* [Formatters](#formatters) | |||
|
|||
## Permission Issue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add empty line after this line
(see also: https://travis-ci.org/sonarwhal/sonar/jobs/250504088#L2417)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alrra Done. One question - some links can get quite long in markdown. Do we always have to use inline links? Referenced links seem to work better in those situations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some links can get quite long in markdown
Yes, that's why I said "were possible try to keep the length..."
Referenced links seem to work better in those situations.
Can you give an example on how that would look like? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alrra in the actual text part
...the recommended
solution is to [change npm's default directory][1] and then try again...
and then append the following at the end of the markdown
[1]:https://docs.npmjs.com/getting-started/fixing-npm-permissions#option-2-change-npms-default-directory-to-another-directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@qzhou1607 If there are no problems when converting it to HTML, I'm ok with that.
@sonarwhal/contributors Other opinions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alrra checked in Hexo, looks okay. I've pushed up the changes.
docs/user-guide/index.md
Outdated
@@ -57,6 +57,9 @@ the different pieces: | |||
* [Connectors](#connectors) | |||
* [Formatters](#formatters) | |||
|
|||
## Permission Issue | |||
If you receive an `EACCES` error when installing `sonar`, the recommended solution is to [change npm's default directory](https://docs.npmjs.com/getting-started/fixing-npm-permissions#option-2-change-npms-default-directory-to-another-directory) and then try again. So far, one such permission issue has been reported when user tries to install `sonar` on [Windows Subsystem for Linux](https://msdn.microsoft.com/en-us/commandline/wsl/install_guide). Dependency `canvas-prebuilt` throws an `EACCES` error during the installation process, and this [issue](https://github.com/sonarwhal/sonar/issues/308) was resolved adopting the recommended solution. You can find detailed steps on how to change the npm default directory [here](https://docs.npmjs.com/getting-started/fixing-npm-permissions#option-2-change-npms-default-directory-to-another-directory). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Split this line into multiple shorter lines, and were possible try to keep the length of the lines to under 80 characters.
b0a695d
to
706c194
Compare
docs/user-guide/index.md
Outdated
`canvas-prebuilt` throws an `EACCES` error during the installation process, | ||
and this [issue](https://github.com/sonarwhal/sonar/issues/308) was resolved | ||
adopting the recommended solution. You can find detailed steps on how to change | ||
the npm default directory [here](https://docs.npmjs.com/getting-started/fixing-npm-permissions#option-2-change-npms-default-directory-to-another-directory). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So maybe it is only something that happens if you use the official installer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@molant Added more information.
706c194
to
70c9397
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alrra anything else that needs to be done here or can we merge this PR?
Fix sonarwhal/sonarwhal.com/webhintio#364
Fix #325