美文网首页
node管理包部分命令

node管理包部分命令

作者: cluenews | 来源:发表于2019-03-11 14:35 被阅读0次
    npm,node更新到最新
    npm update -g
    npm install -g n
    
    查看全局安装模块和删除全局安装的包
    npm list -g -depth 0
    npm uninstall -g XXX
    
    查看包是否有更新
    npm -g outdated
    
    查看项目中安装的模块(非全局)
    npm ls -depth 0
    
    mac终端部分命令
    sudo -s 进入超级管理员
    ctrl+D 退出超级管理员
    mkdir   创建文件夹
    touch 创建文件
    cd 进入文件夹
    ls 查看文件
    rm 移除文件
    

    相关文章

      网友评论

          本文标题:node管理包部分命令

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