"npm cache clean" may also fix the problem when installing as root (https://github.com/npm/npm/issues/7407)
However, I have hit this issue on systems before where the root users doesn't have the ability to touch a root owned file in the root home folder. :/ Pete On Thursday, July 28, 2016 at 12:44:34 PM UTC-4, Spencer Ogden wrote: > > For future reference, this was caused by trying to install globally as > root. Installation with a user account does not cause this error, but of > course does not allow global installation. > > Spencer > > On Wednesday, July 27, 2016 at 3:20:35 PM UTC-4, Spencer Ogden wrote: >> >> I am running `npm install -g jupyter-dashboards-server` and the issue is >> when trying to install the dependency "phosphor-dragdrop". During that >> packages install, it fails on `npm dedupe`. The specific error is: >> >> npm ERR! Error: EACCES: permission denied, open >> '*/root/*.npm/_locks/staging-a072192f34a17023.lock.STALE' >> >> [snip] >> npm ERR! Please try running this command again as root/Administrator. >> >> -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/20f4ce12-9002-4a24-ba96-eb2a4146e269%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
