Laravel Vue.js application not running - javascript

I have a serious problem on running Laravel + Vue.js new applications. I tried that on a 50% developed app and also on a brand new Laravel instalation and that shows the same error. After installing the Laravel and going into php artisan serve i start a common routine to start Vue.js within that Laravel application, which means NPM RUN INSTALL and right after NPM RUN DEV. This is what the errors show me:
I have tried all possible solutions found on previous posts on Stack Overflow and Github but the error persists. I have a node version 10.15.1 and the latest Laravel scaffold. Any thoughts on what might be happening? Im at the point of giving up using a scaffold Vue.js and instead using it as stand alone.
Thank you!

It seems like, It fails while vue-template-compiler package getting install through yarn.
It might be issue with yarn in your system.
Try to first install vue-template-compiler through NPM:
npm install vue-template-compiler
Then try again with npm run dev.
I hope this will help.

Related

Javascript issue installing npm packages (nodemon, express)

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.

React Tailwind - not able to start my app

I was trying to use Tailwind css with react project, i followed the exact instructions on Tailwind website on how to use Tailwind in React but when trying to run npm run start it displays :
Failed to compile.
EIO: i/o error, read
did anyone ever faced this, ad please how to solve this ?
When this kind of unexpected errors arise without any logic reason at all, it's recommended to follow these steps:
Check if you got npm's latest version installed and if you don't upgrade it.
Delete your node_modules folder.
Reinstall all the packages using npm install.

React npm start issue - node.js latest version

I have installed the latest version of node.js and tried to create my very first react application.The applications gets created fine.but when i navigate to the application and try to use the command npm start,it throws an error.I have tried to remove the npm_modules,update npm,npm install create-react-app command.Still the problem persists.Any idea or suggestion will be very helpful!Thanks in advance!
Well the issue is resolved..i just had to set my path variable to c:\windows\system32
using the command PATH=%PATH%;c:\windows\system32!Thanks for all those who tried to help me!
If you use CRA, it is recommended to use npx instead of npm.
npx create-react-app myapp

How do I run a copied project in Node.js

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!

Starting server - done! in IONIC 2 without run the project

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.

Categories

Resources