I tried to run
sudo npm install -g npm to upgrade from 6.9.0 → 6.12.0.
(I have to always use sudo whenever installing anything with npm for some reason.)
I got this error:
joe@joeslinux:/usr/lib/node_modules/npm/node_modules$ sudo npm install -g npmnpm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/openzeppelin-solidity npm ERR! path /usr/lib/node_modules/npm/node_modules/openzeppelin-solidity npm ERR! code ELOOP npm ERR! errno -40 npm ERR! syscall access npm ERR! ELOOP: too many symbolic links encountered, access '/usr/lib/node_modules/npm/node_modules/openzeppelin-solidity' npm ERR! A complete log of this run can be found in: npm ERR! /home/joe/.npm/_logs/2019-10-12T14_02_25_800Z-debug.log
when I tried to navigate to that directory, I got the same error:
:~$ cd /usr/lib/node_modules/npm/node_modules/openzeppelin-solidity bash: cd: /usr/lib/node_modules/npm/node_modules/openzeppelin-solidity: Too many levels of symbolic links
Then I noticed this line from ls run from /usr/lib/node_modules/npm/node_modules
lrwxrwxrwx 1 root root 21 Jul 13 13:33 openzeppelin-solidity -> openzeppelin-solidity
When I originally installed open zeppelin many months ago, I went by the instructions as they were presented. I never had any issues with npm until today. I’m only getting around to experimenting with open zeppelin, so I can’t say whether it works or not.