I work in an offline network and I want to be able to type
npm install <package-name>
and then, a request to a local server inside my network will be sent to download the package.
What is the best way I can implement it?
Thanks
You can setup local git server on your local network and store your package on local git server then you can install the package by
npm install https://gitserverip/user_name/package.git
Related
curl -sL -k https://sentry.io/get-cli/ | bash
As you can see, i am even asking NOT to verify the certificate with -k, but still can't install it.
This script will automatically install sentry-cli 1.72.2 for you.
Installation path: /usr/local/bin/sentry-cli curl: (60) SSL
certificate problem: unable to get local issuer certificate More
details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could
not establish a secure connection to it. To learn more about this
situation and how to fix it, please visit the web page mentioned
above.
What can be causing the issue? I have the Same with npm and yarn, see below
npm install #sentry/cli
npm ERR! info sentry-cli Downloading from https://downloads.sentry-cdn.com/sentry-cli/1.72.2/sentry-cli-Windows-x86_64.exe
npm ERR! Error: Unable to download sentry-cli binary from https://downloads.sentry-cdn.com/sentry-cli/1.72.2/sentry-cli-Windows-x86_64.exe.
npm ERR! Error code: UNABLE_TO_GET_ISSUER_CERT_LOCALLY
I tried :
npm config set strict-ssl=false
npm config set registry http://registry.npmjs.org/
set NODE_TLS_REJECT_UNAUTHORIZED=0
albeit no success
From what i read here it might be a proxy problem. But how do i get to know but i don't understand exactly how to know what is my proxy or the path the my pem certificate
Ok disabling internet security provider during the time of the installation worked for me
I am trying to install gatsby CLI by using below npm
npm install --global gatsby-cli
and stuck with the below issue may be because I don't have admin access, anyone any idea how to get rid of this error or install gatsby globally without admin access or if I dont install globally then how to use gatsby command on CLI
You need admin access for installing global packages. However, you can install gatsby-cli on your local machine (where you have admin access), then gatsby build to generate a public directory. Finally, you can deploy your website by copying the public directory to the web server that you don't have admin access to it, for example, by using scp.
I need help running localhost to connect with vs code. I am trying to open a phaser 3 game I built.
I have tried npm install -g
I keep getting permissions denied.
Could you try with sudo command(if you are using mac or ubuntu)
sudo npm install -g
If you are using windows, then open the terminal with admin rights. (Run as administrator)
I'm trying to use pusher.subscribe() on the server side, but Pusher is only for client side.
I found this: https://github.com/pusher/pusher-http-node
Which allows us to set up a pusher for the server side. However, the readme is outdated and I can't set it up.
Running this command
npm install pusher --prefix cloud/modules
Only creates: cloud/modules/etc and cloud/modules/node_modules.
This means I cant run
$ cd cloud/modules/pusher
$ npm run parse-build
Please help!
try to use cd cloud/modules/node_modules/pusher and then npm run parse-build it will create build for Parse cloud
'Creating build for Parse Cloud.' && webpack --config=./parse.webpack.js Creating build for Parse Cloud. sh: webpack: command not found
Install webpack using npm install -g webpack globally or locally to install webpack local for the project npm install -D to install all dev dependencies in your cd cloud/modules/node_modules/pusher directory.It is recommended to install webpack locally so that you need not to stick to a particular version for different projects.
You can't subscribe with Pusher you can only trigger and some other functions
if you want to subscribe from the server side(nodejs e.t.c)
use pusher-js
npm i pusher-js or yarn add pusher-js
I`m making an Electron app that should connect by grpc to remote host and call some functions from there.
But I keep getting the following error:
Uncaught Error: A dynamic link library (DLL) initialization routine failed.
\?\D:\Projects\demo-app\node_modules\grpc\src\node\extension_binary\grpc_node.node
I tried to:
establish grpc connection from main and from renderer processes of Electron
install dependencies as npm install --unsafe-perm
but nothing works.
Error
The gRPC package is distributed with precompiled binaries for Electron, including on Windows, but you have to specify that you're using Electron when you do the installation. The following should work:
npm install grpc --runtime=electron --target=<electron version>
If you're using a native module, you'll need to rebuild them against your current electron node version.
There is a package called electron-rebuild that will do this for you. Basic instructions:
npm install --save-dev electron-rebuild
Then, whenever you install a new npm package, rerun electron-rebuild:
./node_modules/.bin/electron-rebuild
Or if you're on Windows:
.\node_modules\.bin\electron-rebuild.cmd