Loopback-next: Can't install @loopback/socketio from npm

Created on 17 Apr 2019  路  3Comments  路  Source: strongloop/loopback-next

Description / Steps to reproduce / Feature proposal

I need to install socketio package from
https://github.com/strongloop/loopback-next/tree/socketio/packages/socketio
it has README.MD with installation command

npm install --save @loopback/socketio

Current Behavior

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@loopback%2fsocketio - Not found
npm ERR! 404
npm ERR! 404 '@loopback/socketio@latest' is not in the npm registry.
npm ERR! 404 Your package name is not valid, because
npm ERR! 404 1. name can only contain URL-friendly characters
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

Expected Behavior

Success installation

Most helpful comment

@octisfall Here is how you can test it:

git clone [email protected]:strongloop/loopback-next.git
cd loopback-next
git checkout socketio
npm i
npm run build
cd packages/socketio
npm pack ==> it creates a tgz

In your app:

npm i <path-to-the-tgz>

All 3 comments

@octisfall The module is not released yet. It's work in progress.

@raymondfeng Is there a workaround to use websocket beside REST application?

@octisfall Here is how you can test it:

git clone [email protected]:strongloop/loopback-next.git
cd loopback-next
git checkout socketio
npm i
npm run build
cd packages/socketio
npm pack ==> it creates a tgz

In your app:

npm i <path-to-the-tgz>
Was this page helpful?
0 / 5 - 0 ratings