gpt4 book ai didi

node.js - 用nvm安装node失败?

转载 作者:太空宇宙 更新时间:2023-11-04 02:06:19 25 4
gpt4 key购买 nike

我在 Mac 上,使用curl 安装了 nvm,工作正常。我“nvm 安装 Node ”,我得到:

Downloading and installing node v7.10.0...
Downloading https://nodejs.org/dist/v7.10.0/node-v7.10.0-darwin-x64.tar.xz...
######################################################################## 100.0%
Computing checksum with shasum -a 256
Checksums matched!
Error: EISDIR: illegal operation on a directory, read
TypeError: Cannot read property 'get' of undefined
at writeLogFile (/myhomedir/.nvm/versions/node/v7.10.0/lib/node_modules/npm/lib/utils/error-handler.js:205:32)

nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `nvm use --delete-prefix v7.10.0` to unset it.

我尝试运行“nvm use --delete-prefix v7.10.0”命令,但它似乎没有效果..

这是怎么回事?

最佳答案

~/.npmrc 中删除此 npm prefix 变量应该会有所帮助。

关于node.js - 用nvm安装node失败?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44205059/

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