LearnNewsExamplesServices
Frontmatter
id1796
titleadd fsevents to the package.json optional dependencies
stateClosed
labels
enhancement
assigneestobiu
createdAtApr 16, 2021, 12:02 PM
updatedAtApr 16, 2021, 12:20 PM
githubUrlhttps://github.com/neomjs/neo/issues/1796
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 16, 2021, 12:04 PM

add fsevents to the package.json optional dependencies

Closed v8.1.0 enhancement
tobiu
tobiu commented on Apr 16, 2021, 12:02 PM

the neo.mjs project is not using the fsevents package on its own.

however, node-sass needs it on macOS.

by default, macOS is using version 1.2.13 and this results in several errors: https://www.npmjs.com/package/fsevents/v/1.0.0?activeTab=readme

"fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2."

the build does still work, but it is definitely better to get rid of the mess.

as far as i know, linux does not use the package at all, so adding it as a real dependency would cause an error in this scope.

adding it as an optional dependency should do the trick.

tested it locally (deleting the node_modules folder) and running npm install.

tobiu added the enhancement label on Apr 16, 2021, 12:02 PM
tobiu assigned to @tobiu on Apr 16, 2021, 12:02 PM
tobiu referenced in commit 0943cdc - "add fsevents to the package.json optional dependencies #1796" on Apr 16, 2021, 12:04 PM
tobiu closed this issue on Apr 16, 2021, 12:04 PM