-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 outdated
fails when scoped packages are present in package.json
#620
Comments
Workaround for now is to remove any scoped packages from package.json and re-run |
+1 getting same issue |
FYI: Just installed yarn v0.16.0 which adds support for private/scoped NPM packages and this bug still exists.
|
FYI.. looks like it's happening (on windows) when doing an
|
Package name was not escaped when querying NPM registry.
This is fixed on master 👐 |
Just to know, when the next release containing this fix is planned? |
I am still seeing this problem For example with the angular quickstarts: $ git clone https://github.com/angular/quickstart.git quickstart && cd quickstart
…
$ yarn install
yarn install v0.17.8
info No lockfile found.
[1/4] Resolving packages...
error Couldn't find package "@types/node" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. I assume the "next release" mentioned in previous post (from Oct 26) has been released. Perhaps it is a regression? My versions:
I am on Fedora/25. |
@rparree thanks for posting. Try cleaning your caches or reinstall yarn first. I can't reproduce. $ yarn
yarn install v0.17.8
info No lockfile found.
[1/4] 🔍 Resolving packages...
warning lite-server > browser-sync > localtunnel > request > tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
warning lite-server > browser-sync > localtunnel > request > node-uuid@1.4.7: use uuid module instead
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 📃 Building fresh packages...
success Saved lockfile.
✨ Done in 31.27s.
$ yarn --version
0.17.8 |
I tried after cleaning my cache (again), it still doesn't work rparree at hprp in ~/tmp/quickstart on master
$ yarn cache clean
yarn cache v0.17.8
success Cleared cache.
Done in 41.74s.
rparree at hprp in ~/tmp/quickstart on master
$ yarn
yarn install v0.17.8
info No lockfile found.
[1/4] Resolving packages...
error Couldn't find package "@types/selenium-webdriver" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
I am using nvm might that cause a problem? |
Are you using some kind of npm proxy or private registry? |
no proxy and no private registry. Where could i place some logging to see what he request/response us? tx., |
Try this https://twitter.com/jasonlaster11/status/798926995405021185 if you want to check the installed version or clone yarn repository, build and attach a debugger. |
I'be used betwixt:
The same request with curl
I did notice in the request header from yarn there is a
When i tried that with curl:
There is no authorisation header on the packages that are not scoped. |
This might be a problem with yarn registry. Try setting yarn to use the npm registry directly |
Same problem :( Why does it only add an authorisation header when the package is scoped? I noticed that a test fails as well which uses a scoped module:
|
This resolves to true:
(EDIT: added the whole boolean expression, as my problem is in the last expression) yarn/src/registries/npm-registry.js Line 56 in b4e42e3
|
This should be moved to a separate issue. |
see #2030 |
Can be reproduced with:
The text was updated successfully, but these errors were encountered: