I'm developing a reactjs project and could add any package using npm. All of a sudden npm installer began to throw error for any package installation. The error is same for all packages. I removed and reinstalled Nodejs, but the error is there as a rock.
Error:
Error log:
Any idea to solve this problem?
Thanks in advance :)
The cli-table3 is the source of issue. I think this package is installed and used by Node.js itself to be able to display table format in console. I uninstalled the Node.js and then deleted npm and npm-cache folders of the path C:\Users\UserName\AppData\Roaming - Of course i didn't have any global package installed. Then reinstalling Node.js solved the issue.
Related
I was writing my code and I want some module to be installed so I installed all the required module but after that, I am getting this (Unable to resolve "./prebuilt.rn-f9cd27ba.js" from "node_modules#firebase\firestore\dist\rn\index.js") error again and again so I tried to uninstall all the module which I have installed and I also tried to reinstall, run npm install, and much more but this issue is not fixed pls help
Make sure you are running a modern version of Node.js (or whatever version your project is using (nvm can help with this).
Delete your node_modules directory and run npm install again.
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
I am getting this error:
I am not able to install the angular cli using npm. I am getting the "cannot find module 'json-schema'" error. I tried reinstalling the node js and npm with the latest versions. But the error didn't resolve. Please help me with this.
This issue has a fix in the link below:
https://github.com/kriszyp/json-schema/issues/29
Good Luck
I uninstalled and installed node/npm/angular-cli many times. Finally did a "where ng" on my windows pc, and found the executable was under the %appdata%\npm directory. So after uninstalling node, deleting the %appdata%\npm directory, reinstalling node, and 'npm install -g angular-cli', the ng new and ng serve commands started working.
I'm trying to run this command to install firebase-admin: npm install firebase-admin --save
When I try to run this command, I get the following error:
ENOENT: no such file or directory, rename 'D:\MyPath\functions\node_modules\firebase-admin\node_modules\grpc\node_modules\abbrev' -> 'D:\MyPath\functions\node_modules\firebase-admin\node_modules\grpc\node_modules\.abbrev.DELETE'
I have tried reinstalling Node.js, I have tried uninstalling a previous version of Node.js, I have tried updating npm, I have tried pretty much everything online but nothing is helping. If I run the newest version of Node.js, instead of getting this error, I get the following error:
Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
I have honestly tried several GitHub threads for people with the same problem but none of their solutions have worked for me, so I am trying here. Can anybody help me with this issue?
Upon further tinkering with this, it looks like I finally solved my issue so i can finally deploy to Firebase. These are the steps I took to solve this problem:
First, I uninstalled firebase-admin using the npm uninstall firebase-admin command.
I reinstalled firebase-adming using the npm install firebase-admin command. This didn't seem to fix my issue, but you never know.
I deleted the firebase-admin directory in the node_modules directory.
I ran npm install
I installed the firebase-admin directory again, this time using npm install firebase-admin --save
I ran firebase deploy and it worked!
I don't know how many of those steps were truly necessary but in the end, it worked.
Try to install it using yarn it will get installed smoothly as I faced the same issue while using npm I ran
yarn add firebase-admin and it got easily installed
Installing Cordova with Nodejs, i got this error :
npm WARN installMany normalize-package-data was bundled with npm#1.3.4, but bund
led package wasn't found in unpacked tree.
The error comes after the command npm install -g cordova
What can be the solution please ?
Thnx
I have solved this issue, so i present here what i did to solve it for anyone who may have the same problem :
I thought about reinstalling Nodejs. So i removed it and installed it again but nothing worked, then i took an installation directory of Nodejs in another computer (which works fine) and copied it to my computer and referenced it in the path environnement variable and every thing worked fine !!
The problem is with cordova and the version of the node.js. The latest version for Node.js (as of today for windows) is problematic with cordova. I went back a few versions and Node-v0-10-36-stable is working fine so far. Other versions may also work but I can only speak for v0.10.36.
http://blog.nodejs.org/2015/01/26/node-v0-10-36-stable/