After vue-cli created the project, it was wrong to execute npm run dev Times.

, npm install executes npm run dev after vue-cli creates the project

clipboard.png
webpack.dev.config.js fs.write()

clipboard.png

but I don"t understand why this error is reported and how to solve it.


may be because the env file is already occupied at the time of run dev, so you can no longer write content to it


it should be that the versions of node and npm do not match
install node, using nvm:

curl https://raw.github.com/creationix/nvm/master/install.sh | sh

wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh

after the installation is complete, restart the terminal and execute the following command to install Node.js

nvm install stable
Menu