Ubuntu 14.04 Newly Installed
mongodbBecause installing a third-party program requires installation
npm install cubeInstallation error:
npm ERR! Error: No dist in websocket-server package npm ERR! at next (/usr/share/npm/lib/cache.js:746:26) npm ERR! at /usr/share/npm/lib/cache.js:739:5 npm ERR! at RegClient.get_ (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:105:14) npm ERR! at RegClient.<anonymous> (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:41:12) npm ERR! at fs.js:268:14 npm ERR! at /usr/lib/nodejs/graceful-fs/graceful-fs.js:103:5 npm ERR! at Object.oncomplete (fs.js:107:15) npm ERR! If you need help, you may report this log at: npm ERR! <http://github.com/isaacs/npm/issues > npm ERR! or email it to: npm ERR! <firstname.lastname@example.org > npm ERR! System Linux 3.13.0-32-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! cwd /home/me/cube npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.10 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/me/cube/npm-debug.log npm ERR! not ok code 0
Attempts to use sudo authority have no effect, and the same mistake is reported.
When downloading websocket-server 1.4.4 dist, I returned 404. I opened the source information and found no dist information. It seems that there is something wrong with the source. . .
We found the reason.
The official source for websocket-server is no longer available. . . I wipe
This is the websocket-server on which the cube depends. Now I wonder if I can replace it with another library. .
It was found that the developer’s website has been shut down, perhaps it was attacked. . .
I have found a solution and forgot to check the issue list of the third-party software I want to install in inside:)
The solution is as follows:
cd node_modules/ git clone https://github.com/miksago/node-websocket-server mv node-websocket-server websocket-server cd .. npm install cube
In fact, it is to replace it with another library.