美文网首页Web 前端开发
npm安装create-react-app

npm安装create-react-app

作者: 歪歪1993 | 来源:发表于2018-07-14 18:50 被阅读97次
    npm ERR! path /usr/local/lib/node_modules
    npm ERR! code EACCES
    npm ERR! errno -13
    npm ERR! syscall access
    npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
    npm ERR!  { Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
    npm ERR!   stack: 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules\'',
    npm ERR!   errno: -13,
    npm ERR!   code: 'EACCES',
    npm ERR!   syscall: 'access',
    npm ERR!   path: '/usr/local/lib/node_modules' }
    npm ERR! 
    npm ERR! Please try running this command again as root/Administrator.
    npm ERR! A complete log of this run can be found in:
    

    这个意思没有权限
    Error: EACCES: permission denied, access '/usr/local/lib/node_modules'

    npm前 加上sudo即可

    sudo npm install -g create-react-app

    成功


    image.png

    相关文章

      网友评论

        本文标题:npm安装create-react-app

        本文链接:https://www.haomeiwen.com/subject/riwypftx.html