Could not find module 'json-schema' while installing angular cli using npm - node.js

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.

Related

Node module errors while Ionic Serve

Everything working well but I don't know what happened, Now when I trying to hit Ionic Serve command it gives error and I have tried with different ionic version and node and npm version to fix the error but the issue remains same even I have tried to start from the fresh project but still no luck. I have attached the error page If anyone helps me it will be really grateful.
Versions that I have installed in my system -
Node = v10.15.3
Npm = 6.4.1
Ionic = CLI 4.12.0
Delete your node module folder which is inside your project then open your terminal and got to inside your project and use this following command "npm install --force" then "npm rebuild node-sass --force".

Cannot find module node-sass while running Ionic 4

I have a big problem with node-sass. I have installed Ionic 4 and did my 'ionic serve' but the compile process failed.
I got the following issue:
"Module build failed: Error: Cannot find module 'node-sass'"
I tried a lot, but it is not possible for me to install the node-sass folder under my node_module. I found a notice with a node-sass bug [here]. But nothing works for me. I tried to uninstall node-sass, but this failed too.
I had the same bug with my every Ionic Project Start. I had this at Ionic V3 too. But know its not possible to get this bug fixed.
Hope someone could help me.
I am also facing Cannot find module 'node-sass'" problem. i will use npm rebuild node-sass --force to install node-sass forcefully to my project. And also what i found it node-sass required python to build their library. i installed Python in my C:/ location to fix rebuild fail problem.

Can't install firebase-admin with npm

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

Grommet installation and configuration in windows 7

When I try to install Grommet in windows 7 using command prompt, it gives the errors as "Cannot find Module". I have been following this tutorial to set up the environment...http://www.grommet.io/docs/hpe/develop/get-started.....When I run gulp dev, it gives the error as "Cannot find Module"..I even tried npm uninstall and then npm install but it doesn't work either.
"node version":"4.4.0","npm version":"2.14.20".
Also, I am not behind a proxy.
It is a problem with the node js and npm version. Required version is mentioned in the docs. If even that doesn't work, try installing in a different folder, which worked in my case.

npm node_modules command not found on ubuntu

I've got a problem starting npm modules f.e. ionic, cordova, protractor. When I write something f.e.like:
ionic serve
It response with:
zsh: command not found: ionic
I installed these modules globally npm install -g ionic and locally npm install ionic, but the output is still the same. Also I tried to run them locally in directory ./node_modules/.bin/ again the same result. Another thing, that I've tried to change path of installation like here Cannot run ionic. receives "No command 'ionic' found", but didn't get the needed result. I still think, that the reason is in path, that npm installs modules, in my case it's ~/npm/bin. Thanks in advance.
Try using bash and running the same command.

Resources