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

yarn-error: can not install or add ? #1835

Closed
xgqfrms-GitHub opened this issue Nov 15, 2016 · 9 comments
Closed

yarn-error: can not install or add ? #1835

xgqfrms-GitHub opened this issue Nov 15, 2016 · 9 comments

Comments

@xgqfrms-GitHub
Copy link

yarn-error: can not install or add ?

yarn-error

what's going on with this ?
Anybody can help?

@xgqfrms-GitHub
Copy link
Author

So, I just give up it!
@npm
@yarnpkgbot

@hobofan
Copy link

hobofan commented Nov 15, 2016

Duplicate of #1268 and fixed by #1425.

Try a newer version of yarn.

@sebmck
Copy link
Contributor

sebmck commented Nov 15, 2016

The error message is pretty clear, the name value in your own package.json is invalid. Remove all the invalid characters from it and it will work.

@sebmck sebmck closed this as completed Nov 15, 2016
@xgqfrms-GitHub
Copy link
Author

which is the invalid characters ?

{
  "name": "yarn test",
  "version": "1.0.1",
  "description": "yarn & chocolatey",
  "main": "index.js",
  "repository": {
    "url": "https://github.com/xgqfrms-GitHub/webgeeker",
    "type": "git"
  },
  "author": "webgeeker",
  "license": "MIT"
}

@wyze
Copy link
Member

wyze commented Nov 15, 2016

The space is an invalid character.

@xgqfrms-GitHub
Copy link
Author

xgqfrms-GitHub commented Nov 15, 2016

where ?
please, show me a screen shortcut.

@wyze
Copy link
Member

wyze commented Nov 15, 2016

Invalid:

"name": "yarn test",

Valid:

"name": "yarn-test",

or

"name": "yarntest",

@xgqfrms-GitHub
Copy link
Author

Thanks!

@xgqfrms-GitHub
Copy link
Author

xgqfrms-GitHub commented Nov 16, 2016

test, OK!
node yarn msi
yarn add

why json file can't have space ?

yarn-error

npm do much better, in terms of show user the error information!

npm vs yarn

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

No branches or pull requests

4 participants