npm ERR! notsup Unsupported platform for n@9.0.0: wanted {"os":"!win32","arch":"any"} (current: {"os":"win32","arch":"x64"})
解决方法:
执行npm cache clean -f报错如下:
C:\Users\Administrator\Downloads\sqllineage-master\sqllineage-master>npm cache clean -f
npm WARN using --force I sure hope you know what you are doing.
C:\Users\Administrator\Downloads\sqllineage-master\sqllineage-master>npm install -g n
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for n@9.0.0: wanted {"os":"!win32","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS: !win32
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\Administrator\AppData\Roaming\npm-cache\_logs\2022-09-27T08_15_20_830Z-debug.log
我最后解决方法是后面加--force:npm install -g n --force