问题描述
测试二进制文件二进制没问题npm WARN rollback 回滚 [email protected] 失败(这可能是无害的):
Testing binaryBinary is finenpm WARN rollback Rolling back [email protected] failed (this is probably harmless):
EPERM: 不允许操作,lstat 'C:UsersorcayoonDocumentsIonicProjectsstartersepicode_modulesfseventsode_modules'
npm notice 创建了一个锁文件为 package-lock.json.你应该提交这个文件.
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected](node_modulesfsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform对于 [email protected]:想要 {"os":"darwin","arch":"any"}(当前:{"os":"win32","arch":"x64"})
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
添加来自 1050 个贡献者的 1105 个包并在 445.94 秒内审核了 53269 个包发现 1 个高危漏洞运行 npm audit fix
来修复它们,或者 npm audit
获取详细信息
added 1105 packages from 1050 contributors and audited 53269 packages in 445.94sfound 1 high severity vulnerability run npm audit fix
to fix them, or npm audit
for details
推荐答案
当在 ionic 或其他任何地方看到此类消息时,请运行 npm audit fix
并查看您是否可以成功地遵循给定的建议解决所有高严重性漏洞"问题,并将生成的更新依赖项贡献回给定的代码库.
When seeing this kind of message on ionic or anywhere else, do run npm audit fix
and see if you can successfully follow the given advice to resolve all "high severity vulnerability" issues and contribute the resulting updated dependencies back to the given codebase.
这里发生的事情是一个名为 chokidar
的包被用来事件"的监视"文件系统目录(如添加的文件).chokidar
是 Linux、Windows 和 Mac 特定文件系统监视包的包装器,其中 fsevents
是 Mac 变体.所以,我很确定任何使用 chokidar
的东西都会有 fsevents
作为可选的依赖项,但正如其他人所说,这个 WARN
消息可以安全地忽略,因为 chokidar
支持所有常见的桌面架构.
What's happening here is that a package called chokidar
is being used to "watch" filesystem directories for "events" (like files being added). chokidar
is a wrapper for Linux-, Windows-, and Mac-specific filesystem-watching packages, of which fsevents
is the Mac variant. So, I am pretty sure anything that uses chokidar
is going to have fsevents
as an optional dependency, but as others have said, this WARN
message can be safely ignored, as chokidar
supports all common desktop architectures.
这篇关于如何修复“不支持的 [email protected] 平台:想要 {“os":“darwin",“arch":“any"}(当前:{“os":“win32",";arch":"x64"})的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!