Node.js "passport-google-oauth2" delivers "failed to fetch user profile" error in Express application

While developing the last example of a [tag:node.js]'s introductory book (an [tag:express.js] application using authentication strategy by Google OpenID), after replacing the passport-google...

php-node Node Express cannot find module

The error is: Cannot find module 'php' Error: Cannot find module 'php' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:278:25) at...

Using `react-bootstrap` with `npm`

I want to create a project using npm, and want to use react-bootstrap inside it. I have package.json with the following dependencies. { "name": "simple-webapp", "version": "0.0.1", ...

How do I install appium on Ubuntu?

I am having trouble installing appium on Ubuntu. I tried the normal apt-get install way and found out that I should not be doing that. So I uninstall node, and appium from apt-get and I tried a...

NPM live-server: command not found

I install live-server globally with: npm install -g live-server but for some reason it is not be found and I get the following error bash: live-server: command not found after command ...

Cant find module Django while deploying on Elastic Beanstalk

I am trying to deploy the backend of this repository https://github.com/LaunchKit/LaunchKit on Elastic Beanstalk. I am very new to Django and I successfully did those two tutorials explaining how...

Clean package.json before packing

Let's say you have a npm project with the following package.json: { "name": "XXX", "version": "YYY", "license": "ZZZ", "scripts": { "scriptA": "...", "scriptB": "...", ...

How does npm list know which ones are direct dependencies?

Get into a new directly, after typing those three commands: npm install underscore npm install lodash npm install express I get a node_modules directory with many packages: $ ls...

npm 5 ignores package lock

I'm trying to upgrade to npm 5 and lock files. Right now I have this package.json: { "name": "typescript-test", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { ...

Error in installation of npm dependecies during firebase cloud functions initiation

I was trying to initialize a firebase cloud functions and the part where the installation of dependencies would always fails. It always show npm ERR! code Z_BUF_ERROR npm ERR! errno -5 npm ERR!...

Node.js - Browsify - Cannot compile the bundled file using node compiler

I am developing a Node.js application using Express. When I do node Node.js, this is working perfectly on localhost:3000. Now I used browsify to bundle this to a file called bundle.js, and tried...

Publishing a .NET Core / Angular 4 Project to Netlify

Does anyone have experience publishing a .NET/Angular project to Netlify? I'm using the Angular Microsoft.AspNetCore.SpaTemplates template. On Netlify, I'm getting a non-zero exit code that's...

Heroku app successfully pushed but will not open

Below is the log when I deploy/push to Heroku. I'm very new to this and have tried extensive research on what could be the root error but alas, I must ask. I've had a running app on Heroku before,...

Infinite get /json when starting express app

My question might be very stupid as I'm totally new in web development and nodejs. I followed the express explanations here -> http://expressjs.com/en/starter/generator.html which indicate how to...

How do I deploy my Node.js app with a opencv4nodejs dependency to Heroku?

I am trying to deploy my Express Node.Js app to Heroku, but am running into issues with OpenCV in the build phase. I am using opencv4nodejs. I have the same issue with this thread at...

I keep getting `errno 4058` from npm

I used npm in the last weeks without any problems, but all of the sudden i keep getting this error: npm ERR! path J:\Work\Web_server\create_file\node_modules\depd npm ERR! code ENOENT npm ERR!...

Cannot open my development server (localhost:3000)

I just did my first react app in desktop and i cleanup my pc for slowness.after when i open my react app and hit npm start -> this error popped-up module.js:549 throw err; ^ Error: Cannot find...

Issue integrating Firebase Cloud Functions

I want to use Firebase Cloud Functions in my APP. So for that I have installed "node-v6.17.1.pkg" from official site. After installing I run "npm install -g firebase-tools" that brought...

How to fix DeprecationWarning: Buffer()

I am building a web app from a sample I found, and get a warning in my output "DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(),...

npm install --save opencv4nodejs

If you have any recommendation on changing the Title let me now. I'm trying to install opencv4nodejs in node.js, I have installed Visual Studio 2017, Cmake python 2.7.16 and python 3.7 since it is...

Cannot read property 'resolve' of undefined when using npm to install a package

I cannot use npm to do anything on my Windows 10 machine. I always get: npm ERR! Cannot read property 'resolve' of undefined. I am using VSCode. npm install npm -g gives me the same message as...

Why does the "TypeError: argument fn must be a function" error occur when running an Angular project?

I just started learning angular. I'm creating an empty Angular project. When I try to run the project I get an error like the following. This may be the cause. ng new intro ng serve...

I can't run dev server in Vuejs

I use a webpack-simple template with vue-cli but after install when i try to npm run serve this error code...

While pushing my commits to heroku, "code ETARGET notarget No matching version found for [email protected]"

I built a localhost website on MacOS using Express, Mongodb. Now I want to deploy it to Heroku server. Here are the commands I used before running into an error $ git add . $ git commit -m"Some...

React-Native: React could not be found within project or in these directories

We have upgraded our react native project to the latest react native version (v0.61.2) with react (16.9.0) and it works perfectly fine on android. When we try to run it on ios thought, we get the...

How can I find the mistake I am making in my C++ code?

In the output, I keep getting -"dollars" and -"cents" instead of positives as shown in the picture. I have used a class named savings account to set initial balance, deposit and withdraw. And I...

Getting error while downloading node modules

I am working on angular 7 and I was trying to download npm module called 'ngx-image-cropper'. But it was throwing some errors like :. npm ERR! Invalid package name "no,rmalize-path": name can only...

serverless s3 upload access denied

I'm trying to upload images to an S3 bucket using the serverless framework. When I call the endpoint after deploy the code fails with an Access Denied error. What am I doing wrong? The error using...

Error: Cannot find module 'node-linux-x64/package.json' - pushing to Heroku for first time

I'm trying to push to Heroku for the first time but I'm getting the following error: Error: Cannot find module 'node-linux-x64/package.json' I've tried implementing solutions from these...

Missing dependencies when installing the Tedious Node.js package

I am trying to create an API using Node.js, Express, Tedious, and MSSQL Server. When I run the command 'npm install tedious' everything seems to run fine and install. But if I run try and run the...