EBADPLATFORM-inotify@1.4.2不受支持的平台

时间:2018-11-14 06:42:38

标签: bootstrap-4 gulp-sass

npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported platform for inotify@1.4.2: wanted {"os":"linux","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! notsup Valid OS:    linux

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:\Users\lenovo\AppData\Roaming\npm-cache\_logs\2018-11-14T06_22_08_427Z-debug.log

2 个答案:

答案 0 :(得分:0)

尝试运行对我有用的npm install npm@3.10.7 --force来降级npm!

答案 1 :(得分:0)

对我来说,这在尝试时发生在 Windows 10 (x64) 上:

 npm install dev

它具有 inotify 作为依赖项,它本身仅适用于 Linux。 很遗憾有这么多包依赖于 dev,这意味着这些包不能再跨平台了。

我能够从 package.json 中的依赖项中删除 dev 并且仍然运行我感兴趣的包。