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

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

    I had a similar problem but my project is part of a bigger system so neither switching to nvm instead of npm nor upgrading my version of Node.js were options.

    However, moving npm backwards to a previous version was an option. I found 4.6.1 worked without complaint.

    sudo npm install -g npm@4.6.1
    

    This version of npm did not complain.

提交回复
热议问题