First error user@suser-Air / % npm install -g protractor
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib/node_modules
Solution - I gave permission to the above path and ran again npm install -g protractor
Second error
user@suser-Air / % npm install -g protractor
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm ERR! code EACCES
npm ERR! syscall symlink
npm ERR. path../lib/node_modules/protractor/bin/protractor
npm ERR! dest /usr/local/bin/protractor
npm ERR! errno -13
npm ERR: Error: EACCES, permission denied. symlink '../lib/node_modules/protractor/bin/protractor' -> '/usr/local/bin/protractor'
npm ERR: [OperationalError: EACCES, permission denied. symlink '../lib/node_modules/protractor/bin/protractor' -> '/usr/local/bin/protractor'] {
npm ERR: cause: [Error: EACCES, permission denied. symlink '../lib/node_modules/protractor/bin/protractor' -> '/usr/local/bin/protractor'] {
14.16.1
macOS Big Sur
you need to run the command in sudo mode
sudo npm install -g protractor
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.