Error: npm is known not to run on Node.js V4.2.6

前端 未结 8 1707
名媛妹妹
名媛妹妹 2020-12-30 20:01

how can I solve the following error? I use Ubuntu 16. When I run any npm command such as \"npm run dev\" I get this error:

ERROR: npm is known not to

8条回答
  •  孤城傲影
    2020-12-30 20:09

    You can also use NVM - I did this to solve the same problem.

    first type

    nvm ls-remote to view the latest versions available,

    then

    nvm install [version] (I used v8.7.0)

    everything should be fine after that.

提交回复
热议问题