Top "Node-modules" questions

Node.

npm WARN install Refusing to install hapi as a dependency of itself

I tried to do the following (per instructions from official site): mkdir hapi && cd hapi npm init npm …

node.js node-modules
gulp task issue with nodejs v10.3.0 : src\node_contextify.cc:629: Assertion `args[1]->IsString()' failed

I recently updated my nodejs version to 10.30.0. Everything works fine. But my gulp build task not working which was working …

javascript node.js gulp node-modules
Top-level ‘await’ expressions are only allowed when the ‘module’ option is set to ‘esnext'

I am going through Stripes integration steps and have come across an error for my code found in step 2.1 (https://…

javascript node.js stripe-payments node-modules
Getting "npm ERR! code EPEERINVALID" on npm packages global install

Whenever I am installing any global package I am getting this error. Error:- on npm packages global install For …

node.js npm node-modules
Executing nodejs script file in PHP using exec()

In my Application, I want to execute a Node.JS file from PHP which in turn makes a http request …

javascript php node.js node-modules
Node error Cannot read property 'resolve' of undefined

I am using reactjs and am unable to install any packages using npm install. The error message I'm getting is : …

javascript node.js reactjs npm node-modules
What is the use of module.parent in node.js? How can I refer to the require()ing module?

I was looking in the node.js module documentation, and noticed that each module has a property- module.parent. I …

node.js node-modules
Delete node_modules folder recursively from a specified path using command line

I have multiple npm projects saved in a local directory. Now I want to take backup of my projects without …

bash macos command-line-interface node-modules
Private bitbucket repository in package.json with version

I am trying to include a private BitBucket repository to my package.json, but I also would like to manage …

bitbucket npm-install node-modules package.json
node --experimental-modules, requested module does not provide an export named

I've installed Node 8.9.1 (same problem happens in v10.5.0). I'm trying to use named imports from npm packages in a file …

node.js node-modules