Error occurred while installing from npm.
To reproduce:
jaehoonlee@MM279227-PC ig-summary % npm install -g
npm ERR! code 1
npm ERR! path /Users/jaehoonlee/Documents/GitHub/ig-summary
npm ERR! command failed
npm ERR! command sh -c npm run build
npm ERR! > @mitre/ig-summary@0.0.3 build
npm ERR! > del-cli dist && tsc && chmod +x dist/ig-summary.js
npm ERR! node:internal/process/esm_loader:46
npm ERR! internalBinding('errors').triggerUncaughtException(
npm ERR! ^
npm ERR!
npm ERR! [Error: EACCES: permission denied, unlink '/Users/jaehoonlee/Documents/GitHub/ig-summary/dist/DataDictionarySettings.d.ts'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'unlink',
npm ERR! path: '/Users/jaehoonlee/Documents/GitHub/ig-summary/dist/DataDictionarySettings.d.ts'
npm ERR! }
npm ERR!
npm ERR! Node.js v20.5.1
npm ERR! A complete log of this run can be found in: /Users/jaehoonlee/.npm/_logs/2023-11-15T16_20_55_477Z-debug-0.log
Same error occurred.
Same error occurred.
Summary
Error occurred while installing from npm.
To reproduce:
reporepo, run commandnpm install -gSolutions approached
Reinstall npm
Same error occurred.
Manually change npm directory
Same error occurred.