Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't start new project #2179

Closed
celicoo opened this issue Dec 7, 2016 · 4 comments
Closed

Can't start new project #2179

celicoo opened this issue Dec 7, 2016 · 4 comments
Labels

Comments

@celicoo
Copy link

celicoo commented Dec 7, 2016

Do you want to request a feature or report a bug?
A bug.

What is the current behavior?

When I try to init using the command yarn init, the following error occurs after the question entry point (index.js):

error An unexpected error occurred: "Cannot convert object to primitive value".

Please mention your node.js, yarn and operating system version.

node.js: v6.9.2
yarn: v0.17.10
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial

Trace from the yarn-error.log file:

Arguments: 
  /usr/bin/nodejs /usr/share/yarn/bin/yarn.js init

PATH: 
  /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

Yarn version: 
  0.17.10

Node version: 
  6.9.2

Platform: 
  linux x64

npm manifest: 
  {
    "name": "dataextractor",
    "version": "4.7.5",
    "description": "Script to extract data from files",
    "author": "Marcelo Franco Filipe Alves <marcelo.alves@garimpo.io>",
    "private": true,
    "engines": {
      "node": "6.7.0",
      "npm": "3.10.8"
    },
    "repository": {
      "type": "git",
      "url": "https://github.com/Garimpo/DataExtractor"
    },
    "bugs": {
      "url": "https://github.com/Garimpo/DataExtractor/issues"
    },
    "scripts": {
      "start": "node-dev ./index.ls"
    },
    "dependencies": {
      "@extract/textract": "4.1.0",
      "async": "1.5.2",
      "chalk": "1.1.1",
      "debug": "2.2.0",
      "glob": "7.0.3",
      "inquirer": "1.0.2",
      "livescript": "1.5.0",
      "mime": "1.3.4",
      "node-dev": "3.1.3",
      "node-xlsx": "0.7.1"
    },
    "devDependencies": {
      "gulp": "3.9.1",
      "gulp-js-obfuscator": "1.0.0",
      "gulp-livescript": "3.0.1"
    },
    "license": "UNLICENSED"
  }

yarn manifest: 
  No manifest

Lockfile: 
  No lockfile

Trace: 
  TypeError: Cannot convert object to primitive value
      at Object.<anonymous> (/usr/share/yarn/lib/cli/commands/init.js:93:27)
      at next (native)
      at step (/usr/share/yarn/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
      at /usr/share/yarn/node_modules/babel-runtime/helpers/asyncToGenerator.js:28:13
      at process._tickCallback (internal/process/next_tick.js:103:7)
@celicoo celicoo changed the title Can Can't start new project Dec 7, 2016
watilde added a commit to watilde/yarn that referenced this issue Dec 10, 2016
Normalize the author and repository field in package.json

Fix for yarnpkg#2179. The interactive prompt of `yarn init`
can't display the nested sub-question for the questions
when there are no default values of the author/repository
and the fields have Object values in `package.json`.
watilde added a commit to watilde/yarn that referenced this issue Dec 10, 2016
Fix for yarnpkg#2179. The interactive prompt of `yarn init`
can't display the nested sub-question for the questions
when there are no default values of the author/repository
and the fields have Object values in `package.json`.
bestander pushed a commit that referenced this issue Dec 13, 2016
Fix for #2179. The interactive prompt of `yarn init`
can't display the nested sub-question for the questions
when there are no default values of the author/repository
and the fields have Object values in `package.json`.
@sebn
Copy link

sebn commented Dec 22, 2016

Isn't it the same as #1924 ?

@torifat
Copy link
Member

torifat commented Dec 22, 2016

@sebn Yes, thanks 👍

@gsklee
Copy link
Contributor

gsklee commented Jun 14, 2017

@bestander close; dupe of #1924

@torifat torifat closed this as completed Jun 14, 2017
@torifat
Copy link
Member

torifat commented Jun 14, 2017

Sorry, my bad. I wrote the comment but missed to close it 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants