node-ntp-client | Pure Javascript implementation of the NTP Client Protocol
kandi X-RAY | node-ntp-client Summary
kandi X-RAY | node-ntp-client Summary
Pure Javascript implementation of the NTP Client Protocol
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of node-ntp-client
node-ntp-client Key Features
node-ntp-client Examples and Code Snippets
Community Discussions
Trending Discussions on node-ntp-client
QUESTION
I'm unable to install my project (that works very well under node 6). This is due to a dependency of node 8, that in addition to be deprecated also attempts to write somewhere where it doesn't have permissions.
...ANSWER
Answered 2017-Jun-15 at 14:20If npm
is running as root (because of sudo
), it will drop root privileges right before executing external scripts/programs (like git
). By default it will setuid to nobody
.
This causes permission issues because nobody
is most likely not allowed to write to the directory /home/ubuntu/.npm/_cacache/tmp/git-clone-cd074428/
(hence the "Permission denied" error).
The best solution is to not use sudo
at all. In your case, installing only local dependencies, it makes even less sense than the usual situation, where sudo
is used to install something globally (-g
).
Perhaps you may have to clean up the permissions in /home/ubuntu/.npm/
too, if some files/directories in there now belong to root
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install node-ntp-client
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page