安装n遇到的问题,跪求大佬解决,谢谢!
这个n是切换哪个目录下安装的?
这个n是简写吗?全称是什么?
安装完用配置环境变量吗?要怎么配置
输入n --help出现的是一个路径
:\Users\10668>n --help
/bin/bash: C:\Users\10668\AppData\Roaming\npm\node_modules\n\bin\n: No such file or directory
C:\Users\10668>
下面是用npm的方法
npm install n -g
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for n@6.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! A complete log of this run can be found in:
npm ERR! C:\Users\10668\AppData\Roaming\npm-cache\_logs\2019-10-23T08_30_50_805Z-debug.log
C:\Users\10668>
下面使用cnpm的方法
C:\Users\10668>cnpm install n -g
Downloading n to C:\Users\10668\AppData\Roaming\npm\node_modules\n_tmp
Copying C:\Users\10668\AppData\Roaming\npm\node_modules\n_tmp\_n@6.0.1@n to C:\Users\10668\AppData\Roaming\npm\node_modules\n
Installing n's dependencies to C:\Users\10668\AppData\Roaming\npm\node_modules\n/node_modules
All packages installed (used 5ms(network 2ms), speed 0B/s, json 0(0B), tarball 0B)
[n@6.0.1] link C:\Users\10668\AppData\Roaming\npm\n@ -> C:\Users\10668\AppData\Roaming\npm\node_modules\n\bin\n
C:\Users\10668>