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
Related
I am using 64bit Windows 7 Ultimate and I want to use my project with Gulp when I run Gulp in the console the below error occurred.
module.js:471
throw err;
^
Error: Cannot find module 'C:\Users\Tiger\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js'
So I don't want use gulp from above problem. So what I do now?
LOn Linux CentOS:
rm -rf /usr/lib/node_module
yum reinstall npm
do not update npm
On windows quite the same. Check out where are the libs/modules and delete them.
Try copying ionic folder from
C:\Users\username\AppData\Roaming\npm\node_modules
to the error location.
Some times even after installing packages from package.json, ionic folder doesn't get created and causes Module.js 471 error.
This solved my problem.
I had the same issue. Actually this means gulp is corrupted in your computer. Go to task manager and quit the nodeJS service running and then try to reinstall Gulp.
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.
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
I'm new to node.js.
I'm using WebStorm. I work on Windows.
I configured my app to run on node.js and when I try to run it I get this error:"Cannot find module 'merge-descriptors'".
I followed these post trying to solve it: How do I resolve "Cannot find module" error using Node.js?,
module.js:338 throw err in node.js
I ran "del /s /q node_modules" (parallel to "rm -rf node_modules").
Now I'm trying to run "npm install -g" and I'm getting this error:
See screen shot below
I've tried to understand it and to look for information about it in the net to no avail.
Any help will be profoundly appreciated!
I had similar issue installing the module, I tried npm install or npm update but my network would timeout. However what I did is very simple:
npm install merge-descriptors --save
When installing the dependencies for a package you should be using npm install and not using the -g flag.
The g flag, or global is used when installing a package globally, which places them in a direct location that is not accessible by the project.
See https://docs.npmjs.com/files/folders
The specific error you're seeing is that the logged in user doesn't have permission to write to the install directory. This can be overcome with sudo command, ex., sudo npm install. But as others have indicated, if you have to do this then something about your app's configuration could be wrong.
I am trying to run this command:
yo angular
But it gives me this error:
**/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/lib/detect-dependencies.js:84
if (_.isString(componentConfigFile.main)) {
^
TypeError: Cannot read property 'main' of undefined
at findMainFiles (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/lib/detect-dependencies.js:84:37)
at /usr/local/lib/node_modules/generator-angular/node_modules/wiredep/lib/detect-dependencies.js:146:17
at forOwn (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/node_modules/lodash/dist/lodash.js:1301:15)
at Function.forEach (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/node_modules/lodash/dist/lodash.js:2595:9)
at detectDependencies (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/lib/detect-dependencies.js:28:5)
at wiredep (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/wiredep.js:57:39)
at Generator._injectDependencies (/usr/local/lib/node_modules/generator-angular/app/index.js:326:5)
at /usr/local/lib/node_modules/generator-angular/node_modules/yeoman-generator/node_modules/async/lib/async.js:232:13
at /usr/local/lib/node_modules/generator-angular/node_modules/yeoman-generator/node_modules/async/lib/async.js:113:21
at /usr/local/lib/node_modules/generator-angular/node_modules/yeoman-generator/node_modules/async/lib/async.js:24:16**
How can I fix above error?
Note: I am running Ubuntu 14.04
The problem is Git was not installed, because yeoman tries to get bower_components via Git
I use nvm and came across this issue after installing and switching to the latest version of node. I realized I forgot to re-install bower globally:
npm install -g bower
After installing bower, the issue went away.