In my package.json
I'm pointing local package my-custom-i18n
by its relative path:
package.json
"dependencies": {
"core-js": "^2.4.1",
"my-custom-i18n": "./../MyProject.Shared/myproject-i18n",
"rxjs": "5.0.0-beta.12",
...
}
npm install
installs packages correctly, but yarn
has problem with it and simply cannot find this package:
yarn output
$ yarn
yarn install v0.15.1
info No lockfile found.
[1/4] Resolving packages...
error Couldn't find package "myproject-i18n" on the "npm" registry.
info Visit http://yarnpkg.com/en/docs/cli/install for documentation about this command.
I see that it looks it on the npm
registry, where this package doesn't live.
Question
Is there any change to use yarn with local packages?
By local packages I mean packages pointed by relative path as my-custom-i18n
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…