Unsupported platform for n@8.0.1: wanted
Posted 安果移不动
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Unsupported platform for n@8.0.1: wanted相关的知识,希望对你有一定的参考价值。
装模块的时候不让装
npm install -g n
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "H:\\\\dev\\\\node\\\\node.exe" "C:\\\\Users\\\\liuan\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js" "install" "-g" "n"
npm ERR! node v11.9.0
npm ERR! npm v3.10.10
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for n@8.0.1: 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! Please include the following file with any support request:
npm ERR! C:\\Users\\liuan\\npm-debug.log
不让装?
新增--force 硬装
npm install -g n --force
以上是关于Unsupported platform for n@8.0.1: wanted的主要内容,如果未能解决你的问题,请参考以下文章
如何升级nodejs版本 安装n模块报错 npm ERR! notsup Unsupported platform
安装intel xtu 遇到"Attempted to install on an unsupported platform"
C++学习(四六四)Microsoft.Cpp.Platform.targets(67,5): error MSB8020: 无法找到 <unsupported> 的生成工具
C++学习(四六四)Microsoft.Cpp.Platform.targets(67,5): error MSB8020: 无法找到 <unsupported> 的生成工具
编译OpenCV:opencv/3rdparty/openjpeg/openjp2/opj_stdint.h:48:2: error: #error unsupported platform
编译OpenCV:opencv/3rdparty/openjpeg/openjp2/opj_stdint.h:48:2: error: #error unsupported platform