1

I'm used to React and doing npm start to get my app running locally. However, when I run that on my new project it prompts that there is no start script. And upon further inspection, there isn't one.

If this is what my package.json looks like how do I get this running locally?

"private": true,
"scripts": {
    "dev": "npm run development",
    "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "watch": "npm run development -- --watch",
    "watch-poll": "npm run watch -- --watch-poll",
    "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --disable-host-check --config=node_modules/laravel-mix/setup/webpack.config.js",
    "prod": "npm run production",
    "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
},
"devDependencies": {
    "@fortawesome/fontawesome-free": "^5.13.0",
    "axios": "^0.19",
    "bootstrap": "^4.5.0",
    "cross-env": "^7.0",
    "datatables.net": "^1.10.22",
    "datatables.net-bs4": "^1.10.22",
    "datatables.net-plugins": "^1.10.22",
    "install": "^0.13.0",
    "jquery": "^3.5.1",
    "laravel-mix": "^5.0.9",
    "lodash": "^4.17.20",
    "moment-timezone": "^0.5.32",
    "npm": "^6.14.9",
    "popper.js": "^1.16.1",
    "resolve-url-loader": "^3.1.2",
    "sass": "^1.20.1",
    "sass-loader": "^8.0.0",
    "vue": "^2.5.17",
    "vue-template-compiler": "^2.6.10"
},
"dependencies": {
    "vue-recaptcha-v3": "^1.9.0"
}
}

It's a Laravel environment using PHP for back end and Vue for front end. I feel really stupid for not knowing this, but when I search I'm also not finding anything.

I'm using PhpStorm, I downloaded XAMPP, Composer, and PHP. I'm not sure what I'm missing or need to do? Help, please. If I'm missing any information I can certainly provide it to the best of my ability.

enter image description here

I'm a dingbat, I realized I wasn't running backend. So.. I did php artisan serve and received this. Any suggestions?

[![enter code here][2]][2]

C:\Users\emzib\ValorSystems.com>php artisan serve

PHP Warning: require(C:\Users\emzib\ValorSystems.com/vendor/autoload.php): Failed to open stream: No such file or directory in C:\Users\emzib\ValorSystems.com\artisan on line 18 PHP Fatal error: Uncaught Error: Failed opening required 'C:\Users\emzib\ValorSystems.com/vendor/autoload.php' (include_path='.;C:\php\pear') in C:\Users\emzib\ValorSystems.com\artisa n:18 Stack trace: #0 {main} thrown in C:\Users\emzib\ValorSystems.com\artisan on line 18

1 Answers1

0

Try below steps

  1. composer install
  2. npm install
  3. npm run dev
dev_mustafa
  • 1,042
  • 1
  • 4
  • 14