npm WARN npm npm does not support Node.js v9.1.0

前端 未结 17 2185
不思量自难忘°
不思量自难忘° 2020-12-05 09:28

I updated to the latest node v9.1.0 and now npm doesn\'t work.

npm WARN npm npm does not support Node.js v9.1.0

17条回答
  •  死守一世寂寞
    2020-12-05 09:53

    I was getting the below warning when I executed, npm install to install package.json for my angular project.

    npm WARN npm npm does not support Node.js v9.1.0 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8. npm WARN npm You can find the latest version at https://nodejs.org/ WARNING: You are likely using a version of node-tar or npm that is incompatible with this version of Node.js.ng-080b84bf08dd68e5.lock for ...\Angular\node Please use either the version of npm that is bundled with Node.js, or a version of npm (> 5.5.1 or < 5.4.0) or node-tar (> 4.0.1) that is compatible with Node.js 9 and above. C:\Program Files\nodejs\node.exe: src\node_zlib.cc:437: Assertion `args.Length() == 7 && "init(windowBits, level, memLevel, strategy, writeResult, writeCallback," " dictionary)"' failed.

    According to @Ilyich, I uninstalled global npm, npm uninstall -g npm And then I executed npm install to install my package, it installed successfully.

提交回复
热议问题