npm troubleshoot

イシュー

  • npm でエラー

npm ERR! Cannot read property '_updated' of undefined

参考

in shell run:
vim `which npm`
.. or whatever your favorite editor is...

change:
#!/usr/bin/env node

to:
#!/usr/bin/env node --max-old-space-size=2048

found 1 low severity vulnerability

  • 1件の深刻度が低い脆弱性を発見
$ npm audit
                                                                                
                       === npm audit security report ===                        
                                                                                
# Run  npm install --save-dev karma@4.0.1  to resolve 1 vulnerability
SEMVER WARNING: Recommended action is a potentially breaking change
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Low           │ Regular Expression Denial of Service                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ braces                                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ karma [dev]                                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ karma > expand-braces > braces                               │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/786                             │
└───────────────┴──────────────────────────────────────────────────────────────┘


found 1 low severity vulnerability in 52225 scanned packages
  1 vulnerability requires semver-major dependency updates.