npm install React-native-deprecated-custom-components --save找不到包



  • 0.44版本 Navigator不在react-native包中,
    网上的解决方案是 cd项目目录
    执行:npm install React-native-deprecated-custom-components --save
    可是报错了,请问如何解决

    npm install React-native-deprecated-custom-components --save
    npm ERR! Darwin 16.7.0
    npm ERR! argv "/usr/local/Cellar/node/6.6.0/bin/node" "/usr/local/bin/npm" "install" "React-native-deprecated-custom-components" "--save"
    npm ERR! node v6.6.0
    npm ERR! npm v3.10.7
    npm ERR! code E404

    npm ERR! 404 Registry returned 404 for GET on https://registry.npm.taobao.org/React-native-deprecated-custom-components
    npm ERR! 404
    npm ERR! 404 'React-native-deprecated-custom-components' is not in the npm registry.
    npm ERR! 404 Your package name is not valid, because
    npm ERR! 404 1. name can no longer contain capital letters
    npm ERR! 404
    npm ERR! 404 Note that you can also install from a
    npm ERR! 404 tarball, folder, http url, or git url.


  • administrators

    R -> r

    很奇怪为什么很多人犯这个错误


登录后回复