Мой реактивный проект напоминает мне Не удается найти модуль 'eslint-plugin-vue', когда npm запускается локально - PullRequest
0 голосов
/ 02 апреля 2019

Я запускаю проект моего коллеги, проект реагирует, когда я запускаю npm локально, терминал говорит мне "Module build failed: Error: Failed to load plugin vue: Cannot find module 'eslint-plugin-vue'"

мой глобальный npm node_modules нет eslint

the project .eslintrc:
"extends": [
        "airbnb-base",
        "eslint:recommended",
        "plugin:react/recommended"
    ],
    "parser": "babel-eslint",
    "env": {
        "browser": true
    },
    "plugins": [
        "react"
    ],
...

1 Ответ

0 голосов
/ 02 апреля 2019

журнал отладки:

    0 info it worked if it ends with ok
    1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'eslint' ]
    2 info using npm@6.5.0
    3 info using node@v8.9.4
    4 verbose run-script [ 'preeslint', 'eslint', 'posteslint' ]
    5 info lifecycle shops@0.0.1~preeslint: shops@0.0.1
    6 info lifecycle shops@0.0.1~eslint: shops@0.0.1
    7 verbose lifecycle shops@0.0.1~eslint: unsafe-perm in lifecycle true
    8 verbose lifecycle shops@0.0.1~eslint: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/wenbowan/Desktop/gitw/reco-fe-merchant-members/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
    9 verbose lifecycle shops@0.0.1~eslint: CWD: /Users/wenbowan/Desktop/gitw/reco-fe-merchant-members
    10 silly lifecycle shops@0.0.1~eslint: Args: [ '-c', 'eslint --ext .js, src' ]
    11 silly lifecycle shops@0.0.1~eslint: Returned: code: 1  signal: null
    12 info lifecycle shops@0.0.1~eslint: Failed to exec eslint script
    13 verbose stack Error: shops@0.0.1 eslint: `eslint --ext .js, src`
    13 verbose stack Exit status 1
    13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
    13 verbose stack     at emitTwo (events.js:126:13)
    13 verbose stack     at EventEmitter.emit (events.js:214:7)
    13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
    13 verbose stack     at emitTwo (events.js:126:13)
    13 verbose stack     at ChildProcess.emit (events.js:214:7)
    13 verbose stack     at maybeClose (internal/child_process.js:925:16)
    13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
    14 verbose pkgid shops@0.0.1
    15 verbose cwd /Users/wenbowan/Desktop/gitw/reco-fe-merchant-members
    16 verbose Darwin 18.2.0
    17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "eslint"
    18 verbose node v8.9.4
    19 verbose npm  v6.5.0
    20 error code ELIFECYCLE
    21 error errno 1
    22 error shops@0.0.1 eslint: `eslint --ext .js, src`
    22 error Exit status 1
    23 error Failed at the shops@0.0.1 eslint script.
    23 error This is probably not a problem with npm. There is likely additional logging output above.
    24 verbose exit [ 1, true ]
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...