Win10 executes npm install-g weex-toolkit to report an error

$npm install-g weex-toolkit
C:Program
`--(empty)

npm WARN babel-loader@6.4.1 requires a peer of webpack@1 | | 2 | | ^ 2.1.0-beta | | ^ 2.2.0-rc but none was installed.
npm WARN babel-loader@6.4.1 requires a peer of webpack@1 | | 2 | | ^ 2.1.0-beta | | ^ 2.2.0-rc but none was installed.
npm WARN babel-loader@6.4.1 requires a peer of webpack@1 | | 2 | | ^ 2.1.0-beta | | ^ 2.2.0-rc but none was installed.
npm WARN babel-loader@6.4.1 requires a peer of webpack@1 | | 2 | | ^ 2.1.0-beta | | ^ 2.2.0-rc but none was installed.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_moduleswee X-toolkitnode_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@ 1.1.3: wanted {"os": "darwin", "arch": "any"} (current: {"os": "win32", "arch": "x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 ( Node_modulesweex- toolkitnode_modulesweex-buildernode_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents @ 1.1.3: wanted {"os": "darwin", "arch": "any"} (current: {"os": "win32", "arch": "x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 ( Node_modulesweex- toolkitnode_modulesweex-previewernode_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents @ 1.1.2: wanted {"os": "darwin", "arch": "any"} (current: {"os": "win32", "arch": "x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 ( Node_modulesweex- toolkitnode_modulesweex-previewernode_modulesweex-buildernode_modulesfse Vents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@ 1.1.3: wanted {"os": "darwin", "arch": "any"} (current: {"os": "win32", "arch": "x64"})
npm err! Code EBADPLATFORM
npm err! Notsup Unsupported platform for fsevents@1.1.3: wanted {"os": "darwin", "arch": "any"} (current: {"os": "win32", "arch": "x64"})
npm err! Notsup Valid OS: darwin
npm err! Notsup Valid Arch: any
npm err! Notsup Actual OS: win32
npm err! Notsup Actual Arch: x64

npm err! A complete log of this run can be found in:
npm err! C:Program_logs2018-04-19T00_29_22_016Z-debug.log

Mar.04,2021

try adding one to package.json manually

"optionalDependencies": {
   "fsevents": "*"
 }
Menu