You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 and karma 3.x as devDependencies, both of which ultimately bring in chokidar 2.x, which lists fsevents 1.2.x as an optional dependency.
It relies on nan 2.9.x, which also references deprecated/removed entities from the v8 API (e.g. isNearDeath). Newer versions of nan have addressed this issue.
I imagine the easiest solution, assuming nothing else breaks, would be to update the karma and webpack 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.
The text was updated successfully, but these errors were encountered:
@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
markjszy
pushed a commit
to markjszy/vue
that referenced
this issue
Oct 2, 2020
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.The text was updated successfully, but these errors were encountered: