我在mac上,我用curl安装了nvm,工作得很好。我是“nvm安装节点”,我得到:
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命令,但它似乎没有任何效果。
怎么一回事?
发布于 2017-05-26 16:50:26
从prefix中删除这个npm prefix变量应该会有帮助。
https://stackoverflow.com/questions/44205059
复制相似问题