Yarn: Name contains illegal characters

Created on 26 Aug 2018  路  1Comment  路  Source: yarnpkg/yarn

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

What is the current behavior?
I am adding local library path when i use npm install it works but when i run yarn install it gives error

If the current behavior is a bug, please provide the steps to reproduce.
I added a dependency in my package.json file like that

....
 "dependencies": {
    "@jeoga": "file:../@jeoga"
  },
.....

NOW when i run npm install it works
But when i run yarn install it gives error
yarn install v1.6.0
[1/4] 馃攳  Resolving packages...
[2/4] 馃殮  Fetching packages...
error @[email protected]: Name contains illegal characters
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

What is the expected behavior?
Please fix this

Please mention your node.js, yarn and operating system version.
node: v10.6.0
yarn: 1.6.0
OS: macOS Sierra 10.12.1

triaged

Most helpful comment

Solved
I had to use because package.json exists inside util directory

"dependencies": {
    "@jeoga/util": "file:../@jeoga/util"
  },

>All comments

Solved
I had to use because package.json exists inside util directory

"dependencies": {
    "@jeoga/util": "file:../@jeoga/util"
  },
Was this page helpful?
0 / 5 - 0 ratings