yarn-error: can not install or add ?

Created on 15 Nov 2016  路  9Comments  路  Source: yarnpkg/yarn

yarn-error: can not install or add ?

yarn-error

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

Most helpful comment

Invalid:

"name": "yarn test",

Valid:

"name": "yarn-test",

or

"name": "yarntest",

All 9 comments

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

Duplicate of #1268 and fixed by #1425.

Try a newer version of yarn.

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.

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"
}

The space is an invalid character.

where ?
please, show me a screen shortcut.

Invalid:

"name": "yarn test",

Valid:

"name": "yarn-test",

or

"name": "yarntest",

Thanks!

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

Was this page helpful?
0 / 5 - 0 ratings