when using Vue cli scaffold to create a project, after the cnpm create app
command, after the project is successfully created, through the NPM run serve
command, the console will report an error, sockjs.js?9be2:1606 GET http://192.168.16.105:8080/sockjs -node/info?t=1574662800493 net::ERR_ CONNECTION_ TIMED_ OUT
error analysis:
sockjs node
is a JavaScript library, which provides cross browser JavaScript API and creates a low latency, full duplex communication channel between browser and web server. After the project runs, the network will always call this interface. If it is not used, this exception will be reported all the time
solution:
1) find /node_ Modules/sockjs client/dist/sockjs. JS
2) in line 1605, comment out self.xhr.send (payload)
and then you can solve the
problem
try {
// self.xhr.send(payload);
} catch (e) { self.emit('finish', 0, ''); self._cleanup(false); } };
Similar Posts:
- Sockjs node/info?T = error reporting solution
- [Solved] React Project Start Error: Uncaught TypeError: Cannot read property ‘forEach‘ of undefined
- [Solved] Appium Error: selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Can’t stop process; it’s not currently runni…
- [salt.master :2195][ERROR ][6219] Failed to allocate a jid. The requested returner …
- NPM install socket.io[UNK][UNK] error: [UNK](npm WARN enoent ENOENT: no such file or directory, open ‘/usr/local/no…
- Local workspace file (‘angular.json’) could not be found.
- NPM Command Error: Allocation failed – JavaScript heap out of memory
- [Solved] Eslint Error: error ‘***’ is assigned a value but never used no-unused-vars
- npm install: npm ERR! errno -4048, Error: EPERM: operation not permitted[How to Solve]
- [Solved] Error: No module factory available for dependency type: ContextElementDependency