zoukankan      html  css  js  c++  java
  • windows 安装 nodejs指定版本

    window server 2008 安装 node-v16.11.0-x64时报  This application only supported on window8.1, windows Server 2012R2,or higher。 

    经查 window server 2008能 node-v13及以下版本。

    于是在网站:https://nodejs.org/en/download/releases/ 下载node-v13.8.0-x64。

    安装前先卸载之前安装的nodejs,卸载时报没有权限,不用管它。

    再安装node时,也可能会提示不能更新path,没有权限,不管它。我查到有网友说要修改注册表,但是修改后也是没用。因为本身用户就是超级管理员。

    安装完成后,在项目中执行npm install 可能会报:

    You are likely using a version of node-tar or npm that is incompatible with this version of Node.js.
    Please use either the version of npm that is bundled with Node.js, or a version of npm (> X or < X) or node-tar (> X) that is compa
    tible with Node.js X and above

    解决办法: 

      1、npm uninstall -g npm

      2、npm install -g npm

  • 相关阅读:
    拓扑编号
    奇怪的梦境
    奖金
    最优布线问题
    亲戚
    最小花费
    Dijkstra算法 最短路径 (部分)
    Floyed算法 最短路径
    P1164 小A点菜(背包方案数模板)
    P1049 装箱问题
  • 原文地址:https://www.cnblogs.com/hankuikui/p/15618191.html
Copyright © 2011-2022 走看看