Having difficulties with running npm run, install, or rebuild on Ubuntu 16.04

After running npm install rebuild or npm install, I encountered the following error message: 1, followed by 2

This is the error that occurred when I executed npm run [my project]

Error: uncaughtException: The gRPC binary module was not installed. To fix this issue, try running "npm rebuild"
Original error: Cannot find module '/home/itsaraphap/Documents/blockchainSampran2/api-sampran/node_modules/fabric-network/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-glibc/grpc_node.node'
Require stack:

Answer №1

Set up this

npm install <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c7a0b5b7a487f6e9f5f7e9f5">[email protected]</a>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Unable to establish connection with Redis - Error: Connection refused on address 127.0.0.1:6379

My current task involves coding in Express.js, executed on an AWS Elastic Beanstalk instance, attempting to establish a connection with an AWS ElastiCache instance using Redis. However, I am encountering the following error message: web: Error connecting t ...

What are some tips for troubleshooting server-side issues in a MERN stack application?

Front-end code snippet: define('CreatePage', () => { const auth = useContext(AuthContext) const {request} = useHttp() const [content, setContent] = useState('') const [title, setTitle] = useState('') const [lead, setLead] = ...

Storing blank information into a Mongodb database with Node.js and HTML

Can someone please assist me with solving this problem? const express=require("express"); const app=express(); const bodyparser=require("body-parser"); const cors=require("cors"); const mongoose=require("mongoose"); ...

What is the most effective way to search for multiple queries in MongoDB based on the key passed in the request parameter?

When a get request calls this API, the search key is dynamically passed in via the id parameter. We are specifically looking for objects that have the Later_Today_P property set to true. Example MongoDB schema: { "user_logged_email" : "<a href=" ...

Is it possible to add more data to additional fields in a mongoose document after it has already been loaded?

After loading a document, I want to populate additional fields. In the ecommerce application I'm building, I load my cart on all routes using the following code: app.use(function(req, res, next) { Cart.findOne({session: req.cookies['express:s ...

Incorporating an npm reference into a personalized node within Node-RED

As a novice in both the NodeRed and NodeJs/npm realms, I am embarking on the journey of creating a custom node for the first time. Despite my efforts to follow the official documentation on Creating your first node, I seem to have hit a roadblock. Everyth ...

The digest string for the crypto.pbkdf2Sync function is malfunctioning

I've been working on revamping the authentication system for an old application that previously ran on node 4.5, but I keep encountering an error whenever I attempt to log in. TypeError [ERR_INVALID_ARG_TYPE]: The "digest" argument must be one of type ...

What is the best method for testing different versions of the same module simultaneously?

My goal is to distribute a module across various component manager systems like npmjs and bower. I also want to provide downloadable builds in different styles such as AMD for requirejs, commonJS, and a global namespace version for browsers - all minified. ...

Storing a date in MySQL using Vue.js and Node.js

My current tech stack consists of nodejs and express.js for the backend, vuejs for the frontend, and mysql as the database. I am facing an issue where I cannot send a date retrieved from localStorage to my mysql database. Whenever I try to send the date, ...

where is the yarn global registry located?

After updating yarn to point to my custom registry and verifying the changes, here is what I found: $yarn config list -g yarn config v1.22.10 info yarn config { 'version-tag-prefix': 'v', 'version-git-tag': true, ' ...

SyntaxError: JSON parsing error - encountered an unexpected character at the beginning

const express = require("express"); const bodyParser = require("body-parser"); const app = express(); const fs = require("fs"); app.use(bodyParser.urlencoded({ extended: true })); app.use(bodyParser.json()); // http://expressjs.com/en/starter/static-files ...

Communicate with MongoDB using Express

Currently, I am facing an issue while trying to establish a connection between my application and MongoDB using Express. The collection 'users' is functioning perfectly without any troubles, but the same cannot be said for my second collection. W ...

Setting up Node NPM proxy authentication - what's the process?

Just diving into the world of Node and attempting to install TypeScript with this command: npm install -g typescript Encountering this error message: If you are behind a proxy, please ensure that the 'proxy' config is set correctly. I've ...

Leveraging Next Js with an external REST API for streamlined authentication and authorization functionality

I am currently working on transitioning my existing application that was developed with Node.js and Express, along with a front end built using create-react-app with Redux, to Next.js. However, I have hit a roadblock as I am unsure of the correct method ...

Firebase scheduled function continues to encounter a persistent issue with an "UNAUTHENTICATED" error being consistently thrown

I have created a firebase-function that is scheduled to retrieve data from an external API source and save it in Firestore. const functions = require("firebase-functions"); const admin = require("firebase-admin"); const { default: Axios ...

Having trouble locating the angular-devkit while trying to update Angular

I encountered the following error message: An unhandled exception occurred: Cannot find module '@angular/compiler-cli' See "C:\Users\rashe\AppData\Local\Temp\ng-s9ZG05\angular-errors.log" for further details. ...

Make sure to log in before running a post request during unit testing with Chai and Mocha

Currently, I am working on testing my post function to only accept data from users with specific permissions. I have successfully implemented a separate login function that is functioning correctly. However, my test code is not recognizing the logged-in us ...

Setting up live-server using npm on MacOS Catalina

I am encountering issues while attempting to install npm live-server due to the following errors: stl34>>npm install live-server -g npm WARN deprecated <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cfaca7a0a4a6abaebd ...

Managing nested dependencies through npm

Seeking advice on effectively managing nested dependencies in npm. My current scenario involves running an app with express.js and express-mongostore in a nodeenv environment. Due to nodeenv, I have opted to globally npm all packages, leading them to be s ...

Utilizing the power of Koa.js in conjunction with MongoDb for seamless development

Having an issue, or maybe just lacking some knowledge here. The question is pretty straightforward - I have this code: router.get('/', (ctx, next) => { MongoClient.connect(url, {useNewUrlParser: true}, function (err, db) { if (err) th ...