-
Notifications
You must be signed in to change notification settings - Fork 29.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
Support NPM5 #30134
Comments
|
@joaomoreno npm 5.1 was just released and has fixes that might be relevant:
https://github.com/npm/npm/releases/tag/v5.1.0 also related:
|
Just in time for a lazy friday afternoon! 🍺 |
After rerunning Still, I pushed it to the branch. Then, jumped to Windows, and now it somehow fails to compile
|
Just to make sure the cause is not broken old shrinkwraps or broken migration code, does the same error happen if you delete the shrinkwraps prior to installing? This feels like it might be worth to open an issue for at npm |
This was already without any shrinkwrap file around, simply having the https://github.com/Microsoft/vscode/tree/joao/npm5 But now that you mention this, maybe I should try to migrate the shrinkwraps from scratch on 5.1 |
Hm... just got the exact same error in macOS. Welcome to the Twilight Zone. |
I've managed to get npm install to work with NPM 5.3 with the changes in #30759 . That fixes the build error that @joaomoreno mentions, which I hit as well. |
Relevant issue from NPM for the optional dependency stuff: npm/npm#17722 . Can confirm that |
Time to consider yarn? |
@Stanzilla I've personally met more bugs with yarn than with npm |
@joaomoreno coming back to this as I think it is major factor the very long build times and installation time especially with all the extensions. npm has an option to not touch the lockfile during installation:
Given that we run through |
Would that still speed up the builds? I'm afraid this will still be a source of issues since people would have to remember to use |
There any movement on this, seeing as nodejs 8 is going to be the new LTS next month? |
yes, I believe so. The travis.yml could pass in
I don't understand the concern here. As of today, people have to remember to run |
Any update on this issue, or still the low priority task on the task list? |
Please do this, so we can get the latest vscode awesomeness on solus. 😎 |
Is there any progress on this issue or idea how this can be solved? This issue exist for a while and Node 8 is now a LTS release. Passing an additional command line flag is probably still better than no solution at all. Especially when it can be set in .npmrc it should be no problem? |
I would like to reiterate that while the behaviour in npm 5 could be better, the same behaviour existed in npm 4 (cross-platform dependencies get removed from shrinkwrap). The only difference in npm 5 is that lockfiles are created automatically. That can be disabled by with |
This issue is blocking VSCode being updated on Solus Linux. They've been stuck at v1.14.2: https://dev.solus-project.com/T4250 |
From https://dev.solus-project.com/T4250:
|
@felixfbecker It would help if you put your citation into some context and add a link to its source because without reading the comment before it and the link there, my first guess was you cite some MS employee who is talking about the VSCode GitHub repository. Then it sounds like they'd be planning to withdraw VSCode from GitHub which is not the case, of course. But it was a good shocker for a few seconds 😱 |
@felixfbecker What kind of issues did you face with yarn? |
@joaomoreno I worked quite extensively with yarn when building the TS/JS support for sourcegraph.com a few months ago because at the time npm 5 didn't exist and we needed something fast. Here's a collection of issues I encountered and things I dislike:
Note that our use case definitely was a stress test for any package manager, things might have improved and not everything may apply to this project. My takeaway was that yarn felt like unstable software and I am more comfortable with the official npm. I see some similarities to node vs iojs - yarn showed off a lot of useful things (default lockfiles, offline mode, great perf) that are now in the core npm. |
That's a LONG list, thanks for narrowing it down. Though I can see a few points not applying to us. Over the past 24h I've been experimenting with Yarn on our repo and the results are pretty good... The cross-platform issue, which is still unresolved in npm5, works perfectly. Speed is great. Overall it looks pretty great. I have yet to find an issue which I couldn't really get out of. Here's it, if you want to take a look: https://github.com/joaomoreno/vscode/tree/yarn |
@joaomoreno Would really like to see yarn be utilized for resolving the NPM5 issue, so I can get the Solus package updated without (in my opinion) nasty workarounds like installing NPM4, and without deprecating it from the repo and requesting people use a Snap instead. If it gets to a usable state for you, feel free to ping me and I'l be happy to test. |
I definitely prefer yarn over npm 4 any day. |
Closing in favour of #38481 |
Really thrilled about this getting landed. Thank you @joaomoreno. |
More details on why this still isn't supported in #29576
The text was updated successfully, but these errors were encountered: