安装materall-ui时出现反应错误

时间:2017-09-10 13:19:17

标签: reactjs npm npm-install material-ui

尝试安装material-ui时出现以下错误

error Darwin 16.7.0

error argv "/Users/xyz/.nvm/versions/node/v7.5.0/bin/node" "/Users/xyz/.nvm/versions/node/v7.5.0/bin/npm" "install" "material-ui"

34 error node v7.5.0

35 error npm  v4.1.2

36 error code ENOTFOUND

37 error errno ENOTFOUND

38 error syscall getaddrinfo

39 error network getaddrinfo ENOTFOUND npme.xxxxx.com npme.xxxxxx.com:443

40 error network This is most likely not a problem with npm itself

40 error network and is related to network connectivity.

40 error network In most cases you are behind a proxy or have bad network settings.

40 error network

40 error network If you are behind a proxy, please make sure that the

40 error network 'proxy' config is set properly.  See: 'npm help config'

41 verbose exit [ 1, true ]

1 个答案:

答案 0 :(得分:0)

从错误日志中,我认为您在下载material-ui模块时连接不良。

在下载任何模块之前,请先检查您的互联网连接。 下载material-ui的语法是

npm install --save material-ui