Node.js install errror Can not find module ../json/parser - node.js

I am installing an legacy project of node working on 0.10.25, When i run npm install its throeing error
module.js:340
throw err;
^
Error: Cannot find module '../json/parser'
And the error is in following
node_modules\nodemailer\node_modules\aws-sdk\lib\aws.js:1:73
Any clue wphat should I debug for or what package is missing, I matched from server environment and installed all.
On Server machine is Ubuntu, while I am trying install on Winwows.

Related

node:internal/modules/cjs/loader:942 throw err; ^ Error: Cannot find module 'express' Require stack:

I am working on running my express server with the command npm start. I am receiving: ```node:internal/modules/cjs/loader:942
throw err;
^
Error: Cannot find module 'express'
Require stack: ```.
I currently do not have node modules and also receive errors when I type the command npm install. I've deleted node modules outside of the current directory, upgraded the version, & have been googling answers. I would appreciate the help. Thanks so much!
You need to install express as the error is showing that express is missing. The command for that shall be npm install express --save. You have also mentioned that you are receiving error upon running npm install .
Updated
Remove bycrypt-nodejs from your package.json file as it is deprecated. Then run npm install. If you need bycrypt you can run npm install bcrypt or npm install bcryptjs which suits your project better. Afterwards run npm install express --save. Hope this will solve the issue.
This is probably because you are in the wrong folder or your file name is wrong. Try ls to see if all your necessary packages are there. If not go to the right folder and type npm i in the terminal. This should solve the issue of any missing packages. Then use npm run start.

Appium is not installing

I installed appium on windows through command. But when I tried to run, it shows error.
C:\Users\Admin>appium
internal/modules/cjs/loader.js:969
throw err;
^
Error: Cannot find module 'C:\Users\Admin\AppData\Roaming\npm\node_modules\appium\build\lib\main.js'
Error after installing appium
Image of console
Installation is failing because files it needs to create already exist. You need to pass the --force flag when installing to overwrite these files:
npm install -g --force appium
Update your node.js by downloading the installer package of node js

Error: Cannot find module 'web3' when trying to use web3.js from Node

internal/modules/cjs/loader.js:1032
throw err;
^
Error: Cannot find module 'web3'
I am getting this error when I am entering command node filename.js in terminal of Visual Studio Code.
and when I run (Ctrl+f5) then Google Chrome opens blank.
Have you installed web3.js?
You can install it by using
npm install web3
if you have done it then please provide the code so i can check it.

Npm not installed

I recently downloaded node.js from nodejs.org and installed it correctly on windows, from gitbash I ran node -v,it gave me a version number,but when I ran npm -v, I get bunch of error message like these;
Internal/module/cjs/loader.js:330
Throw err;
Error: cannot find module 'C:\Program Files\nodejs\node_modules\npm\node_modules\nom-registry-fetch\node_modules\fighy-pudding\index.js'.
Please verify that the package.json has a valid "main" entry
And other bunch of errors...
How do I fix these please
Well, i tried alot of replies, still ended up the same.
I reinstalled windows and installed the same nodejs.exe i downloaded and npm was installed...lol

react-native : cannot find module 'npmlog'

I am trying to install react native on my windows 7 PC,
but unfortunately an error occurred during installation saying
Error: Cannot find module 'npmlog'
npm install -g react-native-cli //Success
react-native init AwesomeProject//missing module
Note that my node version is 4.3.1
What is missing?!.
It sounds like you possibly have a conflict with your npm version and your node version.
Re-installing node usually solves this issue.
I won't list them all, but a google search of the error will throw up hundreds of results. You can try fixing paths yourself, but generally best just to let the node installer handle it.
Re-installing npm may also resolve the issue
npm install -g npm

Resources