代码需要用到xxhash
从os x部署到Ubuntu,好像是这个包引入了fsevents,这东东只能在os x下打包,这种情况怎么解决?
npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: fsevents@1.0.9
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: linux
npm ERR! notsup Actual Arch: x64
你是在os x下打包了node_modules然后放到linux下用?
这种情况一般是依赖库有C++插件,不要打包node_modules目录,在linux下后,直接在程序目录运行npm i,在安装过程中会对C++模块进行重新编译。