Error missing list of packages to add to your project

After reinstall of my Kubuntu 18 I tried to run my @vue/cli 4.0.5 / vuex 3 app and got error : error Missing list of packages to add to your project serge@AtHome:/mnt/_work_sdb8/wwwroot/lar/VApps/v...

After reinstall of my Kubuntu 18 I tried to run my @vue/cli 4.0.5 / vuex 3 app
and got error : error Missing list of packages to add to your project

serge@AtHome:/mnt/_work_sdb8/wwwroot/lar/VApps/vtasks$ node -v
v14.12.0
serge@AtHome:/mnt/_work_sdb8/wwwroot/lar/VApps/vtasks$ yarn -v
1.22.5
serge@AtHome:/mnt/_work_sdb8/wwwroot/lar/VApps/vtasks$ yarn add
yarn add v1.22.5
error Missing list of packages to add to your project.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
serge@AtHome:/mnt/_work_sdb8/wwwroot/lar/VApps/vtasks$ yarn upgrade
yarn upgrade v1.22.5
error No lockfile in this directory. Run `yarn install` to generate one.
info Visit https://yarnpkg.com/en/docs/cli/upgrade for documentation about this command.
serge@AtHome:/mnt/_work_sdb8/wwwroot/lar/VApps/vtasks$ lsb_release -d; uname -r; uname -i
Description:    Ubuntu 18.04.5 LTS
4.15.0-118-generic
x86_64

My package.json :

{
  "name": "ctasks",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "test:e2e": "vue-cli-service test:e2e",
    "test:unit": "vue-cli-service test:unit",
    "lint": "vue-cli-service lint"
  },
  "dependencies": {
    "@voerro/vue-tagsinput": "^2.2.0",
    "@vue/cli-plugin-babel": "^4.4.1",
    "axios": "^0.19.0",
    "core-js": "^3.3.2",
    "cypress-file-upload": "^3.5.3",
    "file-saver": "^2.0.2",
    "font-awesome": "^4.7.0",
    "idle-vue": "^2.0.5",
    "moment": "^2.24.0",
    "moment-timezone": "^0.5.27",
    "v-money": "^0.8.1",
    "vee-validate": "^3.1.0",
    "vue": "^2.6.10",
    "vue-avatar": "^2.1.8",
    "vue-context-menu": "^2.0.6",
    "vue-focus": "^2.1.0",
    "vue-head": "^2.2.0",
    "vue-js-modal": "^1.3.31",
    "vue-nav-tabs": "^0.5.7",
    "vue-notification": "^1.3.20",
    "vue-phone-number-input": "^1.1.9",
    "vue-router": "^3.1.3",
    "vue-select": "^3.2.0",
    "vue-simple-calendar": "^4.3.2",
    "vue-simple-suggest": "^1.10.1",
    "vue-slider-component": "^3.1.1",
    "vue-the-mask": "^0.11.1",
    "vue-upload-component": "^2.8.20",
    "vue-wysiwyg": "^1.7.2",
    "vue2-datepicker": "^3.3.0",
    "vue2-filters": "^0.8.0",
    "vuex": "^3.0.1"
  },
  "devDependencies": {
    "@vue/cli-plugin-e2e-cypress": "~4.2.0",
    "@vue/cli-plugin-eslint": "~4.2.0",
    "@vue/cli-plugin-router": "^4.0.0",
    "@vue/cli-plugin-vuex": "^4.0.0",
    "@vue/cli-service": "^4.0.0",
    "babel-eslint": "^10.0.3",
    "bootstrap": "^4.3.1",
    "eslint": "^6.7.2",
    "eslint-plugin-vue": "^6.1.2",
    "faker": "^4.1.0",
    "jquery": "^3.4.1",
    "node-sass": "^4.12.0",
    "popper.js": "^1.16.0",
    "sass-loader": "^8.0.0",
    "vue-template-compiler": "^2.6.10"
  },
  "eslintConfig": {
    "root": true,
    "env": {
      "node": true
    },
    "extends": [
      "plugin:vue/essential",
      "eslint:recommended"
    ],
    "parserOptions": {
      "parser": "babel-eslint"
    },
    "rules": {
      "semi": [
        2,
        "never"
      ]
    }
  }
}

Why error and how to fix it ?
Before reinstall of my Kubuntu it worked ok.
Did I miss some configurations?
I installed lates node, npm, yarn.
Thanks!

Comments

@umamialex

@umamialex
umamialex

changed the title
add: Cannot add module flat.

add: Cannot add any module that is also an option.

Nov 2, 2016

umamialex

added a commit
to umamialex/yarn
that referenced
this issue

Nov 2, 2016

@umamialex

This actually does not replicate yarnpkg#1609, but it does show that the
problem is in the CLI script itself and not the add functionality.

umamialex

added a commit
to umamialex/yarn
that referenced
this issue

Nov 2, 2016

@umamialex

umamialex

added a commit
to umamialex/yarn
that referenced
this issue

Nov 2, 2016

@umamialex

This actually does not replicate yarnpkg#1609, but it does show that the
problem is in the CLI script itself and not the add functionality.

umamialex

added a commit
to umamialex/yarn
that referenced
this issue

Nov 2, 2016

@umamialex

umamialex

added a commit
to umamialex/yarn
that referenced
this issue

Nov 2, 2016

@umamialex

This actually does not replicate yarnpkg#1609, but it does show that the
problem is in the CLI script itself and not the add functionality.

umamialex

added a commit
to umamialex/yarn
that referenced
this issue

Nov 2, 2016

@umamialex

umamialex

added a commit
to umamialex/yarn
that referenced
this issue

Nov 2, 2016

@umamialex

@wyze
wyze

mentioned this issue

Nov 3, 2016

This was referenced

Nov 23, 2016

umamialex

added a commit
to umamialex/yarn
that referenced
this issue

Nov 27, 2016

@umamialex

This actually does not replicate yarnpkg#1609, but it does show that the
problem is in the CLI script itself and not the add functionality.

umamialex

added a commit
to umamialex/yarn
that referenced
this issue

Nov 27, 2016

@umamialex

This was referenced

Nov 28, 2016

Error missing list of packages to add to your project is raised by yarn add command. This happens when you forget to mention a package name. The solution is to use command yarn add package_name.

According to yarn add documentation, the valid syntaxes are –

# To install latest package
yarn add package-name

# To install specific package version
yarn add [email protected]

# To install package according to tag like latest, beta, alpha-01
yarn add [email protected]

Suppose you forgot to add package-name in the command and used like this –

yarn add

Then, it will raise error missing list of packages to add to your project.

yarn add without package raising error missing list of packages to add to your project

How to install all packages in package.json?

When you were using yarn add command without any package name then you might wished to install all packages in package.json, just like npm install.

To install all packages, you can use this command –

yarn install

// Or simply

yarn

yarn install to install all packages in package.json file

Conclusion

The solution to the error “missing list of packages to add to your project” is to mention the package name in yarn add command like yarn add package_name. In this article we also saw how we can install all the packages in package.json file using yarn install command.

This is Akash Mittal, an overall computer scientist. He is in software development from more than 10 years and worked on technologies like ReactJS, React Native, Php, JS, Golang, Java, Android etc. Being a die hard animal lover is the only trait, he is proud of.

Related Tags
  • Error,
  • yarn

Posted By: Anonymous

After reinstall of my Kubuntu 18 I tried to run my @vue/cli 4.0.5 / vuex 3 app
and got error : error Missing list of packages to add to your project

[email protected]:/mnt/_work_sdb8/wwwroot/lar/VApps/vtasks$ node -v
v14.12.0
[email protected]:/mnt/_work_sdb8/wwwroot/lar/VApps/vtasks$ yarn -v
1.22.5
[email protected]:/mnt/_work_sdb8/wwwroot/lar/VApps/vtasks$ yarn add
yarn add v1.22.5
error Missing list of packages to add to your project.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
[email protected]:/mnt/_work_sdb8/wwwroot/lar/VApps/vtasks$ yarn upgrade
yarn upgrade v1.22.5
error No lockfile in this directory. Run `yarn install` to generate one.
info Visit https://yarnpkg.com/en/docs/cli/upgrade for documentation about this command.
[email protected]:/mnt/_work_sdb8/wwwroot/lar/VApps/vtasks$ lsb_release -d; uname -r; uname -i
Description:    Ubuntu 18.04.5 LTS
4.15.0-118-generic
x86_64

My package.json :

{
  "name": "ctasks",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "test:e2e": "vue-cli-service test:e2e",
    "test:unit": "vue-cli-service test:unit",
    "lint": "vue-cli-service lint"
  },
  "dependencies": {
    "@voerro/vue-tagsinput": "^2.2.0",
    "@vue/cli-plugin-babel": "^4.4.1",
    "axios": "^0.19.0",
    "core-js": "^3.3.2",
    "cypress-file-upload": "^3.5.3",
    "file-saver": "^2.0.2",
    "font-awesome": "^4.7.0",
    "idle-vue": "^2.0.5",
    "moment": "^2.24.0",
    "moment-timezone": "^0.5.27",
    "v-money": "^0.8.1",
    "vee-validate": "^3.1.0",
    "vue": "^2.6.10",
    "vue-avatar": "^2.1.8",
    "vue-context-menu": "^2.0.6",
    "vue-focus": "^2.1.0",
    "vue-head": "^2.2.0",
    "vue-js-modal": "^1.3.31",
    "vue-nav-tabs": "^0.5.7",
    "vue-notification": "^1.3.20",
    "vue-phone-number-input": "^1.1.9",
    "vue-router": "^3.1.3",
    "vue-select": "^3.2.0",
    "vue-simple-calendar": "^4.3.2",
    "vue-simple-suggest": "^1.10.1",
    "vue-slider-component": "^3.1.1",
    "vue-the-mask": "^0.11.1",
    "vue-upload-component": "^2.8.20",
    "vue-wysiwyg": "^1.7.2",
    "vue2-datepicker": "^3.3.0",
    "vue2-filters": "^0.8.0",
    "vuex": "^3.0.1"
  },
  "devDependencies": {
    "@vue/cli-plugin-e2e-cypress": "~4.2.0",
    "@vue/cli-plugin-eslint": "~4.2.0",
    "@vue/cli-plugin-router": "^4.0.0",
    "@vue/cli-plugin-vuex": "^4.0.0",
    "@vue/cli-service": "^4.0.0",
    "babel-eslint": "^10.0.3",
    "bootstrap": "^4.3.1",
    "eslint": "^6.7.2",
    "eslint-plugin-vue": "^6.1.2",
    "faker": "^4.1.0",
    "jquery": "^3.4.1",
    "node-sass": "^4.12.0",
    "popper.js": "^1.16.0",
    "sass-loader": "^8.0.0",
    "vue-template-compiler": "^2.6.10"
  },
  "eslintConfig": {
    "root": true,
    "env": {
      "node": true
    },
    "extends": [
      "plugin:vue/essential",
      "eslint:recommended"
    ],
    "parserOptions": {
      "parser": "babel-eslint"
    },
    "rules": {
      "semi": [
        2,
        "never"
      ]
    }
  }
}

Why error and how to fix it ?
Before reinstall of my Kubuntu it worked ok.
Did I miss some configurations?
I installed lates node, npm, yarn.
Thanks!

Solution

Reading the doc of yarn add (https://classic.yarnpkg.com/en/docs/cli/add/), you need to specify the package that you want to install.

if you want to add a package:

yarn add vue #same as npm install vue

if you want to load all the dependency from the package.json

yarn #same as npm install

if you want to run custom command from package.json

yarn serve #same as npm run serve

The error you see from yarn is because you don’t specify any package to install, so he tell you : «give me the name (or names) of the package(s) that you want me to install in this project»

Answered By: Anonymous

Related Articles

  • Ubuntu apt-get unable to fetch packages
  • Problems Installing CRA & NextJS from NPM (Error:…
  • Runing vue/cli app under docker simple index.html is opened
  • Error ‘Map’, but got one of type ‘Null’ flutter web with…
  • Using a Svelte each block, how do you bind:value to a to a…
  • Docker not able to install git on Ubuntu container
  • Error using core-scaffold from polymer JS in the latest…
  • Unexpected end of JSON input while parsing
  • Vue&TypeScript: how to avoid error TS2345 when import…
  • Manually raising (throwing) an exception in Python

Disclaimer: This content is shared under creative common license cc-by-sa 3.0. It is generated from StackExchange Website Network.

After reinstall of my Kubuntu 18 I tried to run my @vue/cli 4.0.5 / vuex 3 app
and got error : error Missing list of packages to add to your project

[email protected]:/mnt/_work_sdb8/wwwroot/lar/VApps/vtasks$ node -v
v14.12.0
[email protected]:/mnt/_work_sdb8/wwwroot/lar/VApps/vtasks$ yarn -v
1.22.5
[email protected]:/mnt/_work_sdb8/wwwroot/lar/VApps/vtasks$ yarn add
yarn add v1.22.5
error Missing list of packages to add to your project.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
[email protected]:/mnt/_work_sdb8/wwwroot/lar/VApps/vtasks$ yarn upgrade
yarn upgrade v1.22.5
error No lockfile in this directory. Run `yarn install` to generate one.
info Visit https://yarnpkg.com/en/docs/cli/upgrade for documentation about this command.
[email protected]:/mnt/_work_sdb8/wwwroot/lar/VApps/vtasks$ lsb_release -d; uname -r; uname -i
Description:    Ubuntu 18.04.5 LTS
4.15.0-118-generic
x86_64

My package.json :

{
  "name": "ctasks",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "test:e2e": "vue-cli-service test:e2e",
    "test:unit": "vue-cli-service test:unit",
    "lint": "vue-cli-service lint"
  },
  "dependencies": {
    "@voerro/vue-tagsinput": "^2.2.0",
    "@vue/cli-plugin-babel": "^4.4.1",
    "axios": "^0.19.0",
    "core-js": "^3.3.2",
    "cypress-file-upload": "^3.5.3",
    "file-saver": "^2.0.2",
    "font-awesome": "^4.7.0",
    "idle-vue": "^2.0.5",
    "moment": "^2.24.0",
    "moment-timezone": "^0.5.27",
    "v-money": "^0.8.1",
    "vee-validate": "^3.1.0",
    "vue": "^2.6.10",
    "vue-avatar": "^2.1.8",
    "vue-context-menu": "^2.0.6",
    "vue-focus": "^2.1.0",
    "vue-head": "^2.2.0",
    "vue-js-modal": "^1.3.31",
    "vue-nav-tabs": "^0.5.7",
    "vue-notification": "^1.3.20",
    "vue-phone-number-input": "^1.1.9",
    "vue-router": "^3.1.3",
    "vue-select": "^3.2.0",
    "vue-simple-calendar": "^4.3.2",
    "vue-simple-suggest": "^1.10.1",
    "vue-slider-component": "^3.1.1",
    "vue-the-mask": "^0.11.1",
    "vue-upload-component": "^2.8.20",
    "vue-wysiwyg": "^1.7.2",
    "vue2-datepicker": "^3.3.0",
    "vue2-filters": "^0.8.0",
    "vuex": "^3.0.1"
  },
  "devDependencies": {
    "@vue/cli-plugin-e2e-cypress": "~4.2.0",
    "@vue/cli-plugin-eslint": "~4.2.0",
    "@vue/cli-plugin-router": "^4.0.0",
    "@vue/cli-plugin-vuex": "^4.0.0",
    "@vue/cli-service": "^4.0.0",
    "babel-eslint": "^10.0.3",
    "bootstrap": "^4.3.1",
    "eslint": "^6.7.2",
    "eslint-plugin-vue": "^6.1.2",
    "faker": "^4.1.0",
    "jquery": "^3.4.1",
    "node-sass": "^4.12.0",
    "popper.js": "^1.16.0",
    "sass-loader": "^8.0.0",
    "vue-template-compiler": "^2.6.10"
  },
  "eslintConfig": {
    "root": true,
    "env": {
      "node": true
    },
    "extends": [
      "plugin:vue/essential",
      "eslint:recommended"
    ],
    "parserOptions": {
      "parser": "babel-eslint"
    },
    "rules": {
      "semi": [
        2,
        "never"
      ]
    }
  }
}

Why error and how to fix it ?
Before reinstall of my Kubuntu it worked ok.
Did I miss some configurations?
I installed lates node, npm, yarn.
Thanks!

Я хочу развернуть свое приложение JHipster на Heroku, но когда я запускаю команду «jhipster heroku», я получил следующую ошибку:

Installing Heroku CLI deployment plugin
× { Error: Command failed: heroku plugins:install heroku-cli-deploy —force
Installing plugin java… yarn add v1.12.3
Installing plugin java… [1/4] Resolving packages…Installing plugin java… [2/4] Fetching packages…Installing plugin java… [3/4] Linking dependencies…Installing plugin java… [4/4] Building fresh packages…Installing plugin java… success Saved 1 n
ew dependency.Installing plugin java… info Direct dependenciesInstalling plugin java… └─ @heroku-cli/plugin-java@3.0.1Installing plugin java… Done in 2.97s.Installing plugin java… installed v3.0.1
Installing plugin —force… yarn add v1.12.3
Installing plugin —force… info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.Installing plugin —force… !
error Missing list of packages to add to your project.
Error: yarn add —force@latest —non-interactive —mutex=file:C:/Users/start/AppData/Local/heroku/yarn.lock —preferred-cache-folder=C:/Users/start/AppData/Local/heroku/yarn —check-files —registry=https://registry.npmjs.org exited with code 1
at ChildProcess.forked.on (C:/Program Files/heroku/client/node_modules/@oclif/plugin-plugins/lib/yarn.js:31:28)

at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

killed: false,
code: 1,
signal: null,
cmd: ‘heroku plugins:install heroku-cli-deploy —force’ }

Версии инструментов:

  • JHipster: 5.1.0

  • Heroku: heroku / 7.19.4 win32-x64 node-v11.3.0

  • Пряжа: 1.7.0

  • Узел: v8.10.0

Я уже пробовал следующие команды:

heroku plugins:install java - successfully installed

heroku plugins:install heroku-cli-deploy --force - 

Затем возникает ошибка:

Installing plugin java… installed v3.0.1

error Missing list of packages to add to your project.
Installing plugin —force… !

Error: yarn add —force@latest —non-interactive —mutex=file:C:/Users/start/AppData/Local/heroku/yarn.lock —preferred-cache-folder=C:/Users/start/AppData/Local/heroku/yarn —check-files —registry=https://registry.npmjs.org exited with code 1
at ChildProcess.forked.on (C:/Program Files/heroku/client/node_modules/@oclif/plugin-plugins/lib/yarn.js:31:28)

Recommend Projects

  • React photo

    React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo

    Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo

    Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo

    TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo

    Django

    The Web framework for perfectionists with deadlines.

  • Laravel photo

    Laravel

    A PHP framework for web artisans

  • D3 photo

    D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Visualization

    Some thing interesting about visualization, use data art

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo

    Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo

    Microsoft

    Open source projects and samples from Microsoft.

  • Google photo

    Google

    Google ❤️ Open Source for everyone.

  • Alibaba photo

    Alibaba

    Alibaba Open Source for everyone

  • D3 photo

    D3

    Data-Driven Documents codes.

  • Tencent photo

    Tencent

    China tencent open source team.

Вы хотите запросить функцию или сообщить об ошибке ?
Ошибка

Каково текущее поведение?
Запуск yarn add flat приводит к:

yarn add v0.16.1
error Missing list of packages to add to your project.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Запуск yarn add flat assert приводит к:

yarn add v0.16.1                 
[1/4] Resolving packages...      
[2/4] Fetching packages...       
[3/4] Linking dependencies...    
[4/4] Building fresh packages... 
success Saved lockfile.          
success Saved 3 new dependencies.
├─ [email protected]                  
├─ [email protected]                
└─ [email protected]                   
Done in 0.79s.                   

То же самое происходит с любым пакетом, у которого есть имя с флагом опции.

Текущее временное решение — yarn add -- flat .

Если текущее поведение является ошибкой, предоставьте шаги для воспроизведения.

Запустить yarn add flat в любом проекте.

Какое поведение ожидается?

Пряжа должна установить модуль квартиру и обновить package.json и yarn.lock .

Пожалуйста, укажите ваш node.js, yarn и версию операционной системы.
node.js: v6.9.1 и v7.0.0
пряжа: v0.16.1
ОС: подсистема Ubuntu v14.04.4 в Windows 10 Pro

Все 5 Комментарий

Это может показаться очевидным, но если вы столкнулись с этой проблемой, убедитесь, что вы случайно не запустили yarn add без передачи необходимых параметров (как следует из сообщения об ошибке): немного_smiling_face:

$ yarn add
yarn add v1.3.2
error Missing list of packages to add to your project.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Это может показаться очевидным, но если вы столкнулись с этой проблемой, убедитесь, что вы случайно не запускаете yarn add без передачи необходимых параметров (как следует из сообщения об ошибке) 🙂

$ yarn add
yarn add v1.3.2
error Missing list of packages to add to your project.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Подождите, какие параметры передать?

Это может показаться очевидным, но если вы столкнулись с этой проблемой, убедитесь, что вы случайно не запускаете yarn add без передачи необходимых параметров (как следует из сообщения об ошибке) 🙂

$ yarn add
yarn add v1.3.2
error Missing list of packages to add to your project.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Не могли бы вы уточнить? Я создал проект с vue create (выбрал yarn ) и не могу выполнить yarn add <package> потому что получаю ошибку Missing list of packages to add to your project. . Ручное редактирование package.json работает. Почему я не могу добавить зависимость? npm install <package> работает. Он также работает с yarn когда я запускаю его изнутри VSCode . Почему?!

Была ли эта страница полезной?

0 / 5 — 0 рейтинги

После переустановки моего Kubuntu 18 я попытался запустить приложение @ vue / cli 4.0.5 / vuex 3 и получил ошибку: error Отсутствует список пакетов для добавления в ваш проект.

serge@AtHome:/mnt/_work_sdb8/wwwroot/lar/VApps/vtasks$ node -v
v14.12.0
serge@AtHome:/mnt/_work_sdb8/wwwroot/lar/VApps/vtasks$ yarn -v
1.22.5
serge@AtHome:/mnt/_work_sdb8/wwwroot/lar/VApps/vtasks$ yarn add
yarn add v1.22.5
error Missing list of packages to add to your project.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
serge@AtHome:/mnt/_work_sdb8/wwwroot/lar/VApps/vtasks$ yarn upgrade
yarn upgrade v1.22.5
error No lockfile in this directory. Run `yarn install` to generate one.
info Visit https://yarnpkg.com/en/docs/cli/upgrade for documentation about this command.
serge@AtHome:/mnt/_work_sdb8/wwwroot/lar/VApps/vtasks$ lsb_release -d; uname -r; uname -i
Description:    Ubuntu 18.04.5 LTS
4.15.0-118-generic
x86_64

Мой Publy.json:

{
  "name": "ctasks",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "test:e2e": "vue-cli-service test:e2e",
    "test:unit": "vue-cli-service test:unit",
    "lint": "vue-cli-service lint"
  },
  "dependencies": {
    "@voerro/vue-tagsinput": "^2.2.0",
    "@vue/cli-plugin-babel": "^4.4.1",
    "axios": "^0.19.0",
    "core-js": "^3.3.2",
    "cypress-file-upload": "^3.5.3",
    "file-saver": "^2.0.2",
    "font-awesome": "^4.7.0",
    "idle-vue": "^2.0.5",
    "moment": "^2.24.0",
    "moment-timezone": "^0.5.27",
    "v-money": "^0.8.1",
    "vee-validate": "^3.1.0",
    "vue": "^2.6.10",
    "vue-avatar": "^2.1.8",
    "vue-context-menu": "^2.0.6",
    "vue-focus": "^2.1.0",
    "vue-head": "^2.2.0",
    "vue-js-modal": "^1.3.31",
    "vue-nav-tabs": "^0.5.7",
    "vue-notification": "^1.3.20",
    "vue-phone-number-input": "^1.1.9",
    "vue-router": "^3.1.3",
    "vue-select": "^3.2.0",
    "vue-simple-calendar": "^4.3.2",
    "vue-simple-suggest": "^1.10.1",
    "vue-slider-component": "^3.1.1",
    "vue-the-mask": "^0.11.1",
    "vue-upload-component": "^2.8.20",
    "vue-wysiwyg": "^1.7.2",
    "vue2-datepicker": "^3.3.0",
    "vue2-filters": "^0.8.0",
    "vuex": "^3.0.1"
  },
  "devDependencies": {
    "@vue/cli-plugin-e2e-cypress": "~4.2.0",
    "@vue/cli-plugin-eslint": "~4.2.0",
    "@vue/cli-plugin-router": "^4.0.0",
    "@vue/cli-plugin-vuex": "^4.0.0",
    "@vue/cli-service": "^4.0.0",
    "babel-eslint": "^10.0.3",
    "bootstrap": "^4.3.1",
    "eslint": "^6.7.2",
    "eslint-plugin-vue": "^6.1.2",
    "faker": "^4.1.0",
    "jquery": "^3.4.1",
    "node-sass": "^4.12.0",
    "popper.js": "^1.16.0",
    "sass-loader": "^8.0.0",
    "vue-template-compiler": "^2.6.10"
  },
  "eslintConfig": {
    "root": true,
    "env": {
      "node": true
    },
    "extends": [
      "plugin:vue/essential",
      "eslint:recommended"
    ],
    "parserOptions": {
      "parser": "babel-eslint"
    },
    "rules": {
      "semi": [
        2,
        "never"
      ]
    }
  }
}

Почему ошибка и как ее исправить? До переустановки моего Kubuntu все работало нормально. Я пропустил какие-то конфигурации? Установил поздний узел, нпм, пряжу. Спасибо!

Чтение документа по добавлению пряжи (https://classic.yarnpkg.com/en/ docs / cli / add /), вам необходимо указать пакет, который вы хотите установить .

Если вы хотите добавить пакет:

yarn add vue #same as npm install vue

Если вы хотите загрузить все зависимости из package.json

yarn #same as npm install

Если вы хотите запустить пользовательскую команду из package.json

yarn serve #same as npm run serve

Ошибка, которую вы видите в yarn, связана с тем, что вы не указываете какой-либо пакет для установки, поэтому он говорит вам: «дайте мне имя (или имена) пакетов, которые вы хотите, чтобы я установил в этом проекте».


8

Cosimo Chellini
12 Фев 2021 в 11:59

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Error missing keyring cannot use cephx for authentication
  • Error missing key prop for element in iterator
  • Error missing in texturedef u
  • Error missing from clause entry for table users
  • Error missing from clause entry for table rank

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии