NodeJS Heroku CLI多个错误

时间:2018-11-26 19:16:53

标签: node.js heroku

我遵循了nodejs https://devcenter.heroku.com/articles/getting-started-with-nodejs的指南,但是遇到了这些错误。我已经重新启动了vscode和我的机器,但是仍然存在相同的错误..每当我使用命令时,都会显示此错误,例如heroku logs

   WARNING
    WARNING Node version must be >=8.0.0 to use this CLI
    WARNING Current node version: 7.10.1
    WARNING
    (node:15276) Error Plugin: heroku: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\package.json
    (node:15276) Error Plugin: @oclif/plugin-legacy: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@oclif\plugin-legacy\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-addons-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-addons-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-apps-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-apps-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-auth: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-auth\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-autocomplete: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-autocomplete\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-buildpacks: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-buildpacks\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-certs: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-certs\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-certs-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-certs-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-ci-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-ci-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-ci: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-ci\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-config: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-config\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-container-registry-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-container-registry-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-git: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-git\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-local-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-local-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-oauth-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-oauth-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-orgs-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-orgs-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-pg-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-pg-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-pipelines-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-pipelines-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-ps: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-ps\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-redis-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-redis-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-run-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-run-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-spaces: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-spaces\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-status: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-status\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-webhooks-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-webhooks-v5\package.json
    (node:15276) Error Plugin: @oclif/plugin-commands: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@oclif\plugin-commands\package.json
    (node:15276) Error Plugin: @oclif/plugin-help: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@oclif\plugin-help\package.json
    (node:15276) Error Plugin: @oclif/plugin-not-found: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@oclif\plugin-not-found\package.json
    (node:15276) Error Plugin: @oclif/plugin-plugins: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@oclif\plugin-plugins\package.json
    (node:15276) Error Plugin: @oclif/plugin-update: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@oclif\plugin-update\package.json
    (node:15276) Error Plugin: @oclif/plugin-warn-if-update-available: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@oclif\plugin-warn-if-update-available\package.json
    (node:15276) Error Plugin: @oclif/plugin-which: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@oclif\plugin-which\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-addons-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-addons-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-apps-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-apps-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-certs-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-certs-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-ci-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-ci-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-container-registry-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-container-registry-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-local-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-local-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-oauth-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-oauth-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-orgs-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-orgs-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-pg-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-pg-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-pipelines-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-pipelines-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-run-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-run-v5\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-spaces: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-spaces\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-status: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-status\package.json
    (node:15276) Error Plugin: @heroku-cli/plugin-redis-v5: files attribute must be specified in C:\Users\63936\AppData\Roaming\nvm\v7.10.1\node_modules\heroku\node_modules\@heroku-cli\plugin-redis-v5\package.json
    TypeError: left.padEnd is not a function
        at items.map.i (C:/Users/63936/AppData/Roaming/nvm/v7.10.1/node_modules/heroku/node_modules/@oclif/parser/lib/list.js:22:21)
        at Object.renderList (C:/Users/63936/AppData/Roaming/nvm/v7.10.1/node_modules/heroku/node_modules/@oclif/parser/lib/list.js:16:25)
        at RequiredFlagError (C:/Users/63936/AppData/Roaming/nvm/v7.10.1/node_modules/heroku/node_modules/@oclif/parser/lib/errors.js:34:30)
        at validateFlags (C:/Users/63936/AppData/Roaming/nvm/v7.10.1/node_modules/heroku/node_modules/@oclif/parser/lib/validate.js:34:27)
        at Object.validate (C:/Users/63936/AppData/Roaming/nvm/v7.10.1/node_modules/heroku/node_modules/@oclif/parser/lib/validate.js:39:5)
        at Object.parse (C:/Users/63936/AppData/Roaming/nvm/v7.10.1/node_modules/heroku/node_modules/@oclif/parser/lib/index.js:26:7)
        at V5.parse (C:/Users/63936/AppData/Roaming/nvm/v7.10.1/node_modules/heroku/node_modules/@oclif/command/lib/command.js:68:41)
        at V5.run (C:/Users/63936/AppData/Roaming/nvm/v7.10.1/node_modules/heroku/node_modules/@oclif/plugin-legacy/lib/index.js:90:52)
        at V5._run (C:/Users/63936/AppData/Roaming/nvm/v7.10.1/node_modules/heroku/node_modules/@oclif/command/lib/command.js:29:31)

0 个答案:

没有答案