2023-04-19 ( from marshall swain)
sudo npm install feathersjs/cli
4.8.0 -g ; ## specific version
sudo npm uninstall feathersjs/cli
4.8.0 -g ; ## UNinstall !
===================================
2020-03-10 – error message (on the command-line): npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY npm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY npm ERR! request to https://registry.npmjs.org/tracer failed, reason: unable to get local issuer certificate
solution:
npm config set registry http://registry.npmjs.org/
=================================================
2020-03-10 – error message on browser:
unable to get local issuer certificate
solution:
npm config set strict-ssl false
export NODE_TLS_REJECT_UNAUTHORIZED=0 ; ## https://github.com/nodejs/help/issues/979
===========================================
2020-03-12 – fatal: unable to access ‘https://github.com/auth0-samples/auth0-express-api-samples/’: SSL certificate problem: unable to get local issuer certificate
- https://confluence.atlassian.com/bitbucketserverkb/ssl-certificate-problem-unable-to-get-local-issuer-certificate-816521128.html
git config —global http.sslVerify false ;
====================================================
npm commands 2016-01-07
npm init ; ## build the package.json file
npm install XXX —save ; ## include the new package in the json file
npm -g ## -g global
WebSocket
good example of websocket
frameworks considered: (all seemed to be overkill)
layers kaph crixalis locomotive stapes hapi
=====================================
installing node for the first time 2014-04-19
yum —assumeyes install rpm;
rpm —import https://fedoraproject.org/static/0608B895.txt;
rpm -Uvh http://download-i2.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm;
yum —assumeyes install nodejs npm —enablerepo=epel;
/etc/rc.d/init.d/httpd start ; ## if not already started (( ??? why is this here ??))
create a node example:
cat <
#! /bin/bash -w
## this example is from http://socket.io/#home
DIR=./temp-node-$(date +%Y-%m-%d—%H-%I) ;
mkdir $DIR && cd $_ ; #### cd $DIR;
npm install socket.io; ## download and prepare the supporting directories
## prepare server path:
/bin/ln -s ./node_modules/socket.io ./socket.io ;
## prepare client path:
/bin/ln -s ./node_modules/socket.io/node_modules/socket.io-client/dist/socket.io.js ./socket.io..socket.io.js ;
cat <
var io = require(‘socket.io’).listen(80);
io.sockets.on(‘connection’, function (socket) {
socket.emit(‘news’, { hello: ‘world’ });
socket.on(‘my other event’, function (data) {
console.log(data);
});
});
END
cat <
END
## change port only
sed -i -e ‘s/80/8080/;’ simple-server.js ;
## change path from /socket.io/ to nothing in order to use the symbolic link
sed -i -e ‘s?/socket.io/?./socket.io..?;s?localhost?edwardsmark.com:8080?’ simple-client.html ;
echo “Now enter: ‘node $DIR/simple-server.js &’ on the command line,”;
echo “and then visit http://edwardsmark.com:8080/$DIR/simple-client.html”;