1. # eslint:stats 错误
    2. verbose lifecycle xxx@~eslint:stats: unsafe-perm in lifecycle true
    3. verbose lifecycle xxx@~eslint:stats: PATH: /Users/xx/.nvm/versions/node/v14.17.3/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/xx/Documents/project/xxx/node_modules/.bin:/Users/xx/.nvm/versions/node/v14.17.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
    4. verbose lifecycle xxx@~eslint:stats: CWD: /Users/xx/Documents/project/xxx
    5. silly lifecycle xxx@~eslint:stats: Args: [ '-c', 'SORT_BY=errors DESC=true npm run eslint -- --format=summary' ]
    6. silly lifecycle xxx@~eslint:stats: Returned: code: 1 signal: null
    7. info lifecycle xxx@~eslint:stats: Failed to exec eslint:stats script
    8. verbose stack Error: xxx@ eslint:stats: `SORT_BY=errors DESC=true npm run eslint -- --format=summary`
    9. verbose stack Exit status 1
    10. verbose stack at EventEmitter.<anonymous> (/Users/xx/.nvm/versions/node/v14.17.3/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
    11. verbose stack at EventEmitter.emit (events.js:375:28)
    12. verbose stack at ChildProcess.<anonymous> (/Users/xx/.nvm/versions/node/v14.17.3/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
    13. verbose stack at ChildProcess.emit (events.js:375:28)
    14. verbose stack at maybeClose (internal/child_process.js:1055:16)
    15. verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
    16. verbose pkgid xxx@
    17. # stylelint 错误
    18. stylelint: unsafe-perm in lifecycle true
    19. Returned: code: 2 signal: null

    参考: