前提需要提前安装Node.js,npm是node.js自带的。 一、我这里使用的webStorm版本是2020.1.1 二、 三、在下图中的dos界面中输入 使用淘宝镜像cnmp install安装,然后再npm install 四、点击运行即可