gpt4 book ai didi

node.js - 当我安装node.js时,它给了我一些错误。并且安装失败

转载 作者:太空宇宙 更新时间:2023-11-04 03:05:15 27 4
gpt4 key购买 nike

C:\Users\ASUS>npm install -g n
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ASUS\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "n"
npm ERR! node v6.10.0
npm ERR! npm v4.3.0
npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported platform for n@2.1.4: 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\ASUS\AppData\Roaming\npm-cache\_logs\2017-03-07T11_09_13_826Z-debug.log

这是错误,我不知道如何修复它。

最佳答案

查看 the library you're trying to install 的自述文件(您应该始终、始终这样做!):

(Unfortunately n is not supported on Windows yet. If you're able to make it work, send in a pull request!)

果然,这就是错误消息告诉您的内容:

Unsupported platform for n@2.1.4: wanted {"os":"!win32","arch":"any"} (current: {"os":"win32","arch":"x64"})

这表示该软件包想要安装在!win32平台上(换句话说,不是Windows),但您当前的平台不满足该要求。

关于node.js - 当我安装node.js时,它给了我一些错误。并且安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42647020/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com