Skip to content

Error while installing from npm #1

@jhlee-mitre

Description

@jhlee-mitre

Summary

Error occurred while installing from npm.
To reproduce:

  1. git clone repo
  2. From the directory of repo, run command npm install -g
  3. Error message below
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

Solutions approached

Reinstall npm

Same error occurred.

Manually change npm directory

Same error occurred.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions