账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    mac下npm安装包报错误
    47
    0
    npm install --save vue-chat-scroll

    报错误
    错误如下:

    Macintosh:hwp-front yanghongwei$ npm install --save vue-chat-scroll
    npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.
    
    npm ERR! path /Users/yanghongwei/Documents/code/hwp-front/node_modules/.bin/webpack-dev-server
    npm ERR! code EEXIST
    npm ERR! Refusing to delete /Users/yanghongwei/Documents/code/hwp-front/node_modules/.bin/webpack-dev-server: #!/bin/sh
    npm ERR! basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
    npm ERR!
    npm ERR! case `uname` in
    npm ERR!     *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
    npm ERR! esac
    npm ERR!
    npm ERR! if [ -x "$basedir/node" ]; then
    npm ERR!   "$basedir/node"  "$basedir/../webpack-dev-server/bin/webpack-dev-server.js" "$@"
    npm ERR!   ret=$?
    npm ERR! else
    npm ERR!   node  "$basedir/../webpack-dev-server/bin/webpack-dev-server.js" "$@"
    npm ERR!   ret=$?
    npm ERR! fi
    npm ERR! exit $ret
    npm ERR!  symlink target is not controlled by npm /Users/yanghongwei/Documents/code/hwp-front/node_modules/webpack-dev-server
    npm ERR! File exists: /Users/yanghongwei/Documents/code/hwp-front/node_modules/.bin/webpack-dev-server
    npm ERR! Move it away, and try again.

    之前修改过全局安装权限问题
    要怎么解决这个问题

    1
    打赏
    收藏
    点击回答
        全部回答
    • 0
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部