Open markjszy opened 4 years ago
Contribution welcome to update the minimal dependencies in package.json (without committing changes to yarn.lock
) so the project works on Node.js 12
@posva i can take this up ,please guide me what needs to be updated
@ArjunDandagi unless @posva thinks otherwise, I believe the two deps that need to be bumped up (due to their own indirect deps on old fsevents) are webpack
and karma
Version
2.6.11
Reproduction link
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#development-setup
Steps to reproduce
On Mac OS Catalina (and probably prior versions), with Node v12 installed, follow the developer build instructions:
yarn
What is expected?
Successful report from
yarn
that all dependencies have been installed, with no warnings or errorsWhat is actually happening?
The following warning, followed by a slew of details (errors) concerning
fsevents
and one of its dependencies,nan
warning Error running install script for optional dependency: "/Users/mark/dev/vue/node_modules/fsevents: Command failed.
Dev dependency installation works fine with Node v10. I think I understand the problem and am curious about the right solution. Vue currently specifies
webpack
4.x andkarma
3.x as devDependencies, both of which ultimately bring inchokidar
2.x, which listsfsevents
1.2.x as an optional dependency.Old
fsevents
is really the problem, in two ways:nan
2.9.x, which also references deprecated/removed entities from the v8 API (e.g.isNearDeath
). Newer versions ofnan
have addressed this issue.I imagine the easiest solution, assuming nothing else breaks, would be to update the
karma
andwebpack
dependencies to some minimal viable version that does away with reliance on these older libs without breaking other expectations. In the meantime, we could also put a note in the build instructions for Mac users noting that they may need to move down to Node v10 if they want to avoid this problem. I understand that this might be obvious to some audience that intends to pitch in with Vue development in the first place, but it might help some.