npm install failures


(Nancy Wang) #1

I tried installing npm packages into my command line and received the following errors:

npm ERR! Darwin 17.4.0
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install”
npm ERR! node v7.8.0
npm ERR! npm v4.2.0
npm ERR! path /Users/Nancy/.npm/_logs/2018-10-07T16_58_54_925Z-debug.log
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall unlink

npm ERR! Error: EACCES: permission denied, unlink ‘/Users/Nancy/.npm/_logs/2018-10-07T16_58_54_925Z-debug.log’
npm ERR! at Object.fs.unlinkSync (fs.js:1081:18)
npm ERR! at Function.rimrafSync [as sync] (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:305:17)
npm ERR! at /usr/local/lib/node_modules/npm/lib/npm.js:295:20
npm ERR! at f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:25:25)
npm ERR! at Glob. (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:151:7)
npm ERR! at emitOne (events.js:96:13)
npm ERR! at Glob.emit (events.js:191:7)
npm ERR! at Glob._finish (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:199:8)
npm ERR! at done (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:184:14)
npm ERR! at Glob._processReaddir2 (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:436:12)
npm ERR! { Error: EACCES: permission denied, unlink ‘/Users/Nancy/.npm/_logs/2018-10-07T16_58_54_925Z-debug.log’
npm ERR! at Object.fs.unlinkSync (fs.js:1081:18)
npm ERR! at Function.rimrafSync [as sync] (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:305:17)
npm ERR! at /usr/local/lib/node_modules/npm/lib/npm.js:295:20
npm ERR! at f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:25:25)
npm ERR! at Glob. (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:151:7)
npm ERR! at emitOne (events.js:96:13)
npm ERR! at Glob.emit (events.js:191:7)
npm ERR! at Glob._finish (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:199:8)
npm ERR! at done (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:184:14)
npm ERR! at Glob._processReaddir2 (/usr/local/lib/node_modules/npm/node_modules/glob/glob.js:436:12)
npm ERR! errno: -13,
npm ERR! code: ‘EACCES’,
npm ERR! syscall: ‘unlink’,
npm ERR! path: ‘/Users/Nancy/.npm/_logs/2018-10-07T16_58_54_925Z-debug.log’ }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Darwin 17.4.0
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install”
npm ERR! node v7.8.0
npm ERR! npm v4.2.0
npm ERR! path /Users/Nancy/.npm/_logs/2019-01-03T18_47_10_587Z-debug.log.3101787096
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall open

npm ERR! Error: EACCES: permission denied, open ‘/Users/Nancy/.npm/_logs/2019-01-03T18_47_10_587Z-debug.log.3101787096’
npm ERR! { Error: EACCES: permission denied, open ‘/Users/Nancy/.npm/_logs/2019-01-03T18_47_10_587Z-debug.log.3101787096’
npm ERR! errno: -13,
npm ERR! code: ‘EACCES’,
npm ERR! syscall: ‘open’,
npm ERR! path: ‘/Users/Nancy/.npm/_logs/2019-01-03T18_47_10_587Z-debug.log.3101787096’ }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! addLocal Could not install /Users/Nancy/Desktop/immersive_fellowship/immersive_fellowship_2/node_modules/babel-preset-env
npm ERR! addLocal Could not install /Users/Nancy/Desktop/immersive_fellowship/immersive_fellowship_2/node_modules/babel-preset-react
npm ERR! Darwin 17.4.0
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install”
npm ERR! node v7.8.0
npm ERR! npm v4.2.0
npm ERR! path /Users/Nancy/Desktop/immersive_fellowship/immersive_fellowship_2/node_modules/babel-preset-env
npm ERR! code ELOOP
npm ERR! errno -62
npm ERR! syscall open

npm ERR! ELOOP: too many symbolic links encountered, open ‘/Users/Nancy/Desktop/immersive_fellowship/immersive_fellowship_2/node_modules/babel-preset-env’
npm ERR!


(system) #2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.