This is about node I recently learned. the record and Rectification Process of errors in JS, because I am a beginner, the errors may be very simple, such as spelling errors, of course, I won't record these issues, but if I don't understand them for a while and don't know how to solve them, I will record them one by one.
1. NPM install formidable Error
This error occurs when I want to use NPM to download and install formidable. At first, I was able to access the website for downloading the changed package, but could not download it, the error is a large basket, but the most important is the so-called "SSL error" at the beginning ". I developed it on the Linux platform. It will display some help websites. We can click here to see if there is anything we need, but it is all in English. I tried my best, but I didn't make the same mistake. Later, I went to class and closed it. When I came back, I used this command again. The result was successful and no error was reported. I was puzzled, maybe it was because the link to my website was faulty at the beginning. To prove that I have installed this package, we can use the NPM LIST command to display all the packages we have installed:
/Home/Wenjiang
── Formidable@1.0.11
└ ── ┬ Jquery@1.7.3
── Htmlparser@1.7.6
├ ── ┬ Jsdom@0.2.15
│ ─ ── ↓ Contextify@0.1.3
│ ── Bindings@1.0.0
│ ── Cssom@0.2.5.
│ ─ ── ↓ Request@2.11.4
│ ─ ── ↓ Form-data@0.0.3
│ ── Async@0.1.9
│ Sampled-modified combined-stream@0.0.3
│ ── Delayed-stream@0.0.5
│ ── Mime@1.2.7.
── Location@0.0.1
── Navigator@1.0.1
── Xmlhttprequest@1.4.2
If you encounter the same mistake as me, you may wish to let me aside first. Maybe, just like me, "Miss Magic conch" appears!
2. Throw arguments [1]; // unhandled 'error' event
^
Error: Listen eaddrinuse
I have checked that the error eaddrinuse is "error. Address in use", which means that the listening port has been used, so we only need to change the listening port.