Grommet installation and configuration in windows 7 - node.js

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.

Related

Npm isn't getting automatically installed on installing node.js

While hosting my webapp on heroku I got a message of some bugs in my npm package, my npm package was of version 3 and node.js was of version 8, I wrote thinking that I can update my npm version I tried to update it but the version remained same so I decided to uninstall it and wrote the command "npm uninstall " and than again tried to install npm but in vain ,finally I uninstalled my node.js and reinstalled tha npm will automatically get installed with it, but this too didn't work now I have node of version 10 with no npm which I got to know by checking version of npm which gave me message of "command not found ", now my every try to install npm has failed , may anyone suggest me what I can do to restore my losses and resume my work.
I am not sure if you have Linux or Windows. First I would check if the npm folder is in path.
You can follow one of these two to add to path if it is not done yet.
Windows
Linux
Alternatively you can install node with node version manager (nvm):
nvm linux and mac
nvm windows

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".

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

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.

Angular CLI re-install Error during Angular Upgrade from 4.3 to 5

I was following steps to upgrade from Angular 4.3 to Angular 5. Here:
Migrating Angular 4.x to Angular 5
The angular update steps all went through smoothly.
The problem came after I uninstalled Angular CLI. And when trying to re-install, I get an unusual Python error that doesn't stop unless I force the task to stop.
If I run the install command npm install -g #angular/cli#latest 2 more times however. It finishes without error.
Running ng help works. But ng serve results in the following error:
I actually have the Python at that exact location. C:\Python27\python.exe
And I used to be running Angular CLI without a problem. So the python exe didn't cause an issue before I uninstalled it.
Also I tried searching for this "watchpack" error, and manually installed webpack again. That didn't solve my error.
I tried uninstalling Angular CLI at global/local. And re-install at the global level again, this python error consistently show up. And it's one of those infinite loop errors that does not stop without manual intervention.
Most Python errors I have seen from Angular CLI git-hub is an error/warning that ends.
node v6.10.2
npm 5.0.4
I think you need to install the windows build tools which now contain the python you are missing :
npm install --global --production windows-build-tools
https://github.com/felixrieseberg/windows-build-tools/issues/56

Karma - config file does not exist

Hi I'm trying to go through the AngularJS original tutorial and in step 2 where I'm supposed to run ./scripts/test.sh, I get an error saying
[ERROR] config - Config file does not exist!
I've checked /config/karma.conf.js and the file indeed does exist.
I'm running the latest version of node, npm, and karma.
I thought re-installing them would fix the issue (as mentioned by a member of the AngularJS team on a Google forum post I found).
I still get the error however. Anyone have any suggestions?
Edit: I tried running /config/karma.conf.js and it gave an error saying "JASMINE is undefined," even though Jasmine is installed. Do I have to set a path or something? I have jasmine installed globally.
You might need to install Karma
steps:
npm install generator-karma
yo karma
If you are on windows try to run ./scripts/test.bat.
On Mac OS Mavericks.
1 - Install Karma
npm install -g generator-karma
2 - run yo karma
yo karma
If node.js and yo is working this will be enough.

Resources