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

前端 未结 17 2174
不思量自难忘°
不思量自难忘° 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:47

    Easiest way I found was to install the latest node with brew and the latest npm manually:

    brew uninstall node
    brew install node
    npm install -g npm@latest
    

    This removed the warning message. For some reason brew wasn't linking the new npm installed by node while it was updating node itself.

提交回复
热议问题