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

前端 未结 8 1777
名媛妹妹
名媛妹妹 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:21

    Get latest release with

    $ nvm install node 
    

    Then run the following

    $ nvm alias default stable_node_version
    

提交回复
热议问题