level 1
先把nodejs升级到5.0以上,然后把react natibe cli配置到环境变量中
2016年10月15日 09点10分
5
level 1
中文网的方法,直接npm install react-native-cli -g
2016年10月20日 08点10分
8
level 1
Error: ENOTSUP: operation not supported on socket, mkdir '/home/cabox'
TypeError: Cannot read property 'get' of undefined
at errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:211:17)
at /usr/local/lib/node_modules/npm/bin/npm-cli.js:83:20
at cb (/usr/local/lib/node_modules/npm/lib/npm.js:215:22)
at /usr/local/lib/node_modules/npm/lib/npm.js:253:24
at /usr/local/lib/node_modules/npm/lib/config/core.js:81:7
at Array.forEach (native)
at /usr/local/lib/node_modules/npm/lib/config/core.js:80:13
at f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:25:25)
at afterExtras (/usr/local/lib/node_modules/npm/lib/config/core.js:178:20)
at /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:35:29
/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:211
if (npm.config.get('json')) {
^
TypeError: Cannot read property 'get' of undefined
at process.errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:211:17)
at emitOne (events.js:115:13)
at process.emit (events.js:210:7)
at process._fatalException (bootstrap_node.js:329:26)
怎么解决
2017年07月13日 14点07分
9