I an having some little problem's when trying to command my project to run with the 'ionic serve', command, inside of the application folder. Every time that i use this command the cmd return the message 'Starting server - done!' and don't run my program.
I already tried to uninstall and reinstall my Cordova, npm and Node.js, at least five times, in each time using a different version of Node.js but without success. I tried to use gulp command in the last installation before the 'ionic serve' command, without success again.
This project of Ionic was downloaded in TFS, because my colleage create him im my enterprise and update to TFS, then i downloaded it.
Now my Node JS has the version 6.10.1 and my npm is in the version 3.10.10. I have a project to deliver in one week and are desperate to solve that.
I will be grateful for any help. Thank you everyone.
Delete the node_modules folder from your project.
Run the command npm install (It will recreate a fresh node_modules folder).
Then run ionic serve.
My friend, i solved in another way.
The person of my enterprise, who had uploaded the project don't put the node-modules folder. Than i copy the folder of him and put in my project, after i used 'ionic serve' command and everything just worked well.
Thank you for your help. I am very grateful.
Related
i have downloaded this project from github: https://github.com/DrA1ex/fourier
I am using XAMPP, localhost.
i am new to github, so i wish for detailed help on this one.
i have cloned the project into my htdocs folder, when i try to connect to it won't work.
When i click on the index.html file located in the src folder, it leads to a blank page.
The project is using bootstrap and i don't know how to make it work.
Is there any more info needed, to solve this, please let me know.
Best regards
There is no need to use XAMPP for this project since it is using javascript and Node to run everything.
What you need to do is have node installed on your computer. Go to Nodejs.org and download the recommended LTS version. This will also install npm (Node Package Manager)
After the installation, go to your project folder, where the file package.json is located, open a terminal (CMD - Command Line) and run:
npm install
This will download all the dependencies that are needed for this project to work.
When it is done, you just need to open a terminal again on the same directory and run:
npm start
Your project will run on localhost (a link will probably appear on your terminal). For me, the project run on http://localhost:4200/ but for you it might be different.
Hope this helps
I'm new to js and trying to setup a simple project with express and nodemon via npm.
However, installing these packages does give me multiple errors (see below).
I am on Win 10, using the PowerShell & Atom IDE. Project is saved on Google Drive.
"Calc.js" is simply the name of my project.
I have node & npm installed and restarted pc multiple times before.
Then I set up the npm init
I begin to install the first package and get this error:
I try to install express, but get the same result, adding -g also does not make a difference. Now I install "ci", which works for some reason.
Now I have the node modules folder in my project, try to install express again, and it seems to kinda work (got the files in the node_modules folder).
However when I try to run the calc.js via "node calc.js" it
does not work.
Already tried out many things and even accidentally made it work, then tried to reproduce it and failed. Would be super happy for some help.
https://github.com/gleitz/mahjong
I want to run this app on my windows,
the directions say:
-Install dependencies with npm update
-Start the application with node app.js
it's sound easy so I try myself.
1.Fist of all , I install node.js on it's official website (https://nodejs.org/en/)
I download the 8.9.3 version.
after installing node.js
2.open the command line and go to the project path.
3.then I input the command npm update.
it works,and the node_modules folder is created.But there are some warn message
4.finally input the command node app.js... it's not work with many error message
following is wrong message
I wonder know how should I do.Is any thing I didn't installed?
Please help me.I really want to research this mahjong project.
Before running npm update in the directory where you have your project, you should run npm install first to install all the required dependencies needed for the project to run.
So I advice to delete the node_modules directory that was created after you ran npm update, after which you can then run npm install. This should solve your issue.
Update: If you just want to try it online and not run it locally they've hosted a version on the web: http://gleitzman.com/apps/mahjong.
It's not your fault.
What you did was correct, but the project documentation needs to be updated. It's not a turn-key solution and you'll need to figure a few things out to get it working.
The error message is says it wants a mongo db instance, but you don't have one running. Try the mongodb home page or google for instructions. If you have docker it is pretty easy: docker run -it -p 27017:27017 mongo.
Even after spinning up mongodb I wasn't able to get the app to work locally. You could try contacting the repo maintainer for assistance. They may be happy to help given you've shown interest in their project.
Good Luck!
I have been planning to start working on a new application for my current college project. What I would like to do is create an electron app that will start specific tasks based on a gulpfile.js.
This is mostly to let people start the gulp tasks even if they aren't used to work with the terminal .
Now the question is: If I package the application (macOS) and the final user don't have any node/gulp.js installed globally, will this work? Is it possible to package an electron app with gulp and fire some gulp taks anyway?
I don't have enough time to start the project without knowing if it will work, that's why I'm addressing this to you guys, I need your help in the subject :)
I have also searched on Google for some solutions, but I didn't find any.
Thank you!
I don't know about gulp in particular, but as it seems to be an npm module, you'll be able to install it locally with your electron app. In the terminal cd to your electron/resources/app folder and run
npm install gulp-cli -g
npm install gulp -D
(as shown on https://gulpjs.com/)
You then should see a node_modules folder in the same directory, which contains the install of gulp. This can then be packaged in the same way as any other electron app.
Before I say anything else, I am a complete noob to node.js and I just want to see what this web application looks like. I noticed this project at a hackathon and I wanted to test it out. They gave the github repo: https://github.com/android-fanatic/Web But I can't run it from my computer. I understand that I would need to use the command prompt and run it from my local server, but can someone give me step by step directions for installing the node.js app?
Again the link is:
https://github.com/android-fanatic/Web
Thanks in advance for any help! :)
Install Node.js
Clone the repository to somewhere on your hard drive
Open a command prompt and go to that directory
Type npm install to install any dependencies
Type npm start
???
PROFIT
The reason you can use npm start is because if you look inside of their package.json file you'll see a "start" option under "scripts". That command will execute when you type npm start.
Assuming you have node and npm installed on your system, you should be able to do:
npm install
npm start
The first command will install the node package dependencies and the second will run the server.
Note: I have never used this project, so my guess is based on looking at the repo alone.
The web application should be available at:
http://localhost:3000