zoukankan      html  css  js  c++  java
  • node 和npm 版本更新

    node 版本更新

    由于公司要用NG-ZORRO,于是我就跑到官网先看看demo,怎么构建项目,执行的过程中发现了问题

    问题描述

    执行官网构建项目命令

    1. 安装脚手架工具#
    $ npm install -g @angular/cli
    
    1. 创建一个项目
    $ ng new PROJECT-NAME
    You are running version v7.6.0 of Node.js, which is not supported by Angular CLI v6.
    The official Node.js version that is supported is 8.9 and greater.
    
    Please visit https://nodejs.org/en/ to find instructions on how to update Node.js.
    
    

    这时候提示我版本不支持,于是网上找了找教程,简单粗暴

    node升级

    1、查看当前版本

    $ node -v
    v7.6.0
    

    2、查看安装目录

    $ where node
    D:Program Files
    odejs
    ode.exe
    
    
    1. 官网下载.msi安装包
    2. 安装到之前的安装目录
    3. 再次查看版本
    $ node -v
    v10.12.0
    
    

    npm 升级

    1、查看当前版本

    $ npm -v
    4.1.2
    
    

    2、执行升级命令npm install npm@latest -g
    3、再次查看版本

    $ npm -v
    6.4.1
    
    

    好了,玩的开心

  • 相关阅读:
    Dragon(preview)
    Release My New Single Album: Open The Door
    Writing REYES
    Expecting New Design: MiniMemMan
    never use virtual function for primitives!
    far.md
    ACL使用.md
    什么是技术,技术是什么
    Js客户端判断上传文件的类型
    color table
  • 原文地址:https://www.cnblogs.com/zhenghengbin/p/9842083.html
Copyright © 2011-2022 走看看