In the process of installing node, NPM I keeps an error, such as
NPM err! Write after end
After experimenting with various methods, it is possible to discover the problems caused by the NPM version, and the problem is solved after the release is reduced. The installation process is now sorted as follows:
1. Download node(download here is node-v8.11.1-x64)
Click EXE to install, all the way next.
2. View version number
NODE-V View node version, showing 8.11.1
Npm-v View NPM version, show 6.0.0
Under the engineering path, NPM I always complains
After a variety of troubleshooting, suspected is the NPM version problem, trying to downgrade.
3.NPM Lower version
NPM Install Npm@5.0.0-g
-G Global Installation
If the error is reported, NPX or NPM already exists, delete the corresponding file in the Nodejs directory (NPX and NPM if any are deleted)
Then re-run the NPM installation command to resolve.
4. Operation Engineering
Under the engineering catalogue
NPM I
After successful installation
NPV Run Dev
Then open the browser.