Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
119 votes
10 answers
210k views

Laravel Mix "sh: 1: cross-env: not found error"

I have been trying to set up Laravel Mix in my project and followed the install guide on the Laravel website however keep getting errors. My package.json { "private": true, "scripts&...
GregorChristie's user avatar
107 votes
18 answers
180k views

Laravel 5.4 ‘cross-env’ Is Not Recognized as an Internal or External Command

I'm trying to run npm run dev for Laravel Mix and I get this error: > @ dev D:\projects\ptcs > cross-env NODE_ENV=development webpack --progress --hide-modules -- config=node_modules/laravel-...
Arthur Tarasov's user avatar
79 votes
6 answers
85k views

Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated

How can I solve this warning when creating laravel project? Steps to replicate: composer create-project --prefer-dist laravel/laravel example cd example composer require laravel/ui php artisan ui vue ...
rhemmuuu's user avatar
  • 1,187
71 votes
8 answers
63k views

sh: 1: cross-env: Permission denied on laravel mix [closed]

I'm trying to run npm run dev but the following error occur: sh: 1: cross-env: Permission denied npm ERR! code ELIFECYCLE npm ERR! errno 126 npm ERR! @ development: `cross-env NODE_ENV=development ...
shamaseen's user avatar
  • 2,368
63 votes
7 answers
76k views

'mix' is not recognized as an internal or external command in Laravel 8 new installation

I have installed a new Laravel 8 application, and then I ran... npm install Afterward, I ran... npm run dev I get the following error. 'mix' is not recognized as an internal or external command &...
Spiral's user avatar
  • 983
52 votes
6 answers
93k views

"npm run" fails with ERR_OSSL_EVP_UNSUPPORTED

I have an existing project which I lately installed on a new equipment. It is a Laravel + vue project. When I run npm run watch I get the following error: > development > cross-env NODE_ENV=...
guyaloni's user avatar
  • 5,502
49 votes
2 answers
44k views

Difference between npm run watch and npm run watch-poll

What is the difference between npm run watch and npm run watch-poll in Laravel mix? I cannot see any difference between the output they give.
Advaith's user avatar
  • 2,550
43 votes
6 answers
116k views

'cross-env' is not recognized as an internal or external command,

Can you please help me on this I have trouble running npm run dev for my Laravel Mix. I followed the links below but an still error exists. Do I have a problem with my OS? I tried to remove ...
Jesray Garciano's user avatar
43 votes
2 answers
34k views

"npm install" installs all dependencies in node_modules directory, instead of having them nested

I need to know if the following behavior is normal. When I npm install, each package from my package.json and the dependencies, don't get installed nested anymore, but each dependency is installed in ...
LoveAndHappiness's user avatar
36 votes
4 answers
10k views

How to solve "TypeError: process.getuid is not a function"

I am running react.js with laravel and watching changes with yarn run watch which has worked fine until I began to come across this error with webpack any time I used yarn or npm after I made some ...
kelvin's user avatar
  • 514
35 votes
6 answers
69k views

Laravel Mix unknown option '--hide-modules' error

When I try to compile React component with Laravel Mix in my Laravel project it raises error 2 lifecycle. E:\MY PROJECTS\Samriddhi Institute> npm run dev @ dev E:\MY PROJECTS\Samriddhi Institute ...
Ravi Majithiya's user avatar
35 votes
10 answers
30k views

error "ETXTBSY: text file is busy" on npm install

When running npm install [any package] or even npm install on homestead I get the following error: npm ERR! ETXTBSY: text file is busy, rmdir '/home/vagrant/valemus-shop-starter/valemus-shop/...
Martijn Imhoff's user avatar
34 votes
2 answers
156k views

What Are "npm run dev" and "npm run prod"

I use the following command to bundle my scripts via the Laravel Mix module: npm run dev // Compile scripts. npm run prod // Compile and minify scripts. Are these native npm commands or custom ...
GTS Joe's user avatar
  • 3,952
32 votes
7 answers
42k views

Every vue component returning Cannot read property 'parseComponent' of undefined

So I've tried researching this but none of the solutions are working. I think it's an issue with some of my vue dependencies, potentially vue-loader, " but I'm not sure what to do to fix it. I ...
movac's user avatar
  • 1,883
29 votes
3 answers
18k views

gulp-notify: [Error in notifier] Error in plugin 'gulp-notify' not found: notify-send

I'm trying to setup Gulp in my install of Laravel 5.1. I've ran then command npm install as specified in the Laravel documentation and that's worked fine. However, when I now run the command gulp I ...
ajtrichards's user avatar
  • 30.4k
27 votes
12 answers
32k views

net::ERR_CONNECTION_REFUSED using Laravel 9, ReactJs with vite js

I'm trying to build an app using Laravel 9 and ReactJS with vite js. I tried following command to build. npm run dev But I'm getting following errors, GET http://[::1]:5173/resources/css/app.css ...
Sourav Das's user avatar
25 votes
6 answers
25k views

npm install errors on vagrant/homestead/windows: EPROTO: protocol error, symlink

I'm building my first project in Laravel and trying to use Elixir, using homestead on Windows 8.1. I've hit the known npm/vagrant issue of too-long-path-names: https://harvsworld.com/2015/how-to-fix-...
Diane Kaplan's user avatar
  • 1,686
24 votes
5 answers
61k views

In laravel npm run dev errors:

I have next errors output running npm command for my laravel 5.6 with bootstrap project: $ npm run dev > @ dev /mnt/_work_sdb8/wwwroot/lar/B4test > npm run development > @ development /mnt/...
user2339232's user avatar
24 votes
3 answers
92k views

Do I need to run `npm run prod` on production?

Laravel ships with a package.json file for npm. The default package.json only ships with devDependencies. npm run development is used to bundle all dependencies with web pack into a single file on ...
Adam's user avatar
  • 27.9k
22 votes
4 answers
17k views

JavaScript function is not defined with Laravel Mix

First , code in resources/js/app.js function button1Clicked(){ console.log('Button 1 is clicked'); } Second , code in testing.blade.php <!DOCTYPE html> <html> <head> <meta ...
YChen's user avatar
  • 221
21 votes
1 answer
21k views

npm gets killed or errno 137 [closed]

I know there are already lots of questions about this problem, but I simply can´t believe I´m running out of memory. npm run dev > [email protected] dev /usr/www/users/****/**** > node build/dev-...
jus_fabi's user avatar
  • 359
19 votes
2 answers
31k views

Difference between npm run dev and npm run production

I am very new in Laravel and vue.js.Please let me know what is the difference between npm run dev and npm run production.Is this something related with the environment?
jisna's user avatar
  • 2,354
19 votes
15 answers
61k views

stop "npm install" at [..................] | idealTree:regal: sill idealTree buildDeps

when I try to run npm install it stop at this error [..................] | idealTree:regal: sill idealTree buildDeps I have tried for fix it for a long time and I tried several ways but it was not ...
sina's user avatar
  • 201
16 votes
3 answers
12k views

Laravel is not defined

Well i am playing with the new laravel 5.3 and vue.js and i want to do a GET call to some users i have in my DB Im using components btw. This is my app.js require('./bootstrap'); Vue.component('...
NEOJPK's user avatar
  • 805
15 votes
4 answers
33k views

Using Composer to install npm and bower packages on production (i.e. no devDependencies)

In my composer.json file I have the following in the scripts section: "post-install-cmd": [ "php artisan clear-compiled", "php artisan optimize", "npm install", "...
Dan B's user avatar
  • 693
15 votes
2 answers
9k views

Laravel mix vue-template-compiler must be installed as a peer dependency

i got a fresh laravel installation, everything compile well but when I install vuex or vue router through npm, compiling wont work anymore, i got this error: Error: [vue-loader] vue-template-...
Jose Santaella's user avatar
14 votes
2 answers
8k views

Laravel: Which npm packages should be in "dependencies" vs "devDependencies"?

In Laravel 5.3 the package.json file looks as following: all packages are in devDependencies. Do somebody can tell me which packages are needed in production too. I think all except browsersync. ...
Ilario Engler's user avatar
13 votes
2 answers
21k views

How to properly include a library from node_modules into your project?

the question can maybe be stupid but did not find the answer till now. I'm trying to include a library from node_modules, from what I've learn since yesterday we should include like that with asset: {...
William's user avatar
  • 351
12 votes
5 answers
38k views

"npm run watch" not working and returning error's saying 'missing "Watch"'

In my fresh laravel project after adding a tailwind template, I tried running npm run watch but it's not working, thus the template is not loading correctly either. $ npm run watch ...
Wakil Ahmed's user avatar
  • 1,253
12 votes
1 answer
6k views

Laravel mix always undefined in mix v4+

Any call to npm run after upgrading to Mix v4.x results in mix being undefined. I see errors like this on every run: > npm run development > @ development /project > cross-env NODE_ENV=...
eComEvo's user avatar
  • 12.3k
10 votes
2 answers
4k views

valet local domain with browser sync Laravel mix

I have load laravel project which runs fine with valet domain something.dev Tried to implement browser sync with laravel-mix mix.browserSync({ proxy: 'something.dev' }); After running npm run ...
Rahul Sharma's user avatar
10 votes
0 answers
874 views

npm run dev returns "Failed: EOF" error on DigitalOcean Apps

I am working to migrate a Laravel web application to DigitalOcean's new App platform. We have been running this application on several machines over the past few months with no npm issues. However, ...
Weston Burchett's user avatar
10 votes
2 answers
7k views

npm run production error I can't decipher

I can't understand the error when executing npm run production: $ npm run production > @ production /var/www/html > cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress ...
cawecoy's user avatar
  • 2,409
9 votes
2 answers
10k views

Is the " npm run watch" property already in Laravel Vite?

Is the "watch" property already in vitejs? I'm starting a new project using Laravel Framework 9.19.0 in which vite is auto-mounted. I've added alpine.js for the front. I've tried to run npm ...
Aro's user avatar
  • 161
8 votes
4 answers
15k views

Installing font-awesome with Laravel 9 (Vite)

i'm using Laravel 9 which doesn't use mix anymore, but vite, to bundle resources, i'm also not using any preprocessors like sass or less and don't really know anything about them. Every text about ...
David's user avatar
  • 306
8 votes
1 answer
13k views

How can I fix error npm run dev in laravel 6

I have an error with npm when install in Laravel 6 it's now working I don't know despite of i did all the steps in order this are my versions: Laravel version 6 npm 6.13.7 Node 13.5.0 I did the ...
Don't worry 's user avatar
8 votes
2 answers
9k views

yarn run dev - cross-env: Permission denied

My dev environment is Vagrant ScotchBox, Node 6.6.2, Npm 3.9.5. I'm trying to compile the assets of my Laravel project using Mix. yarn install yarn run dev With yarn run dev i get sh: 1: cross-env: ...
romeoenrico's user avatar
7 votes
4 answers
11k views

npm permission issue in laravel docker setup

If I try and run the following in my docker setup docker-compose run --rm npm run dev I get the following error > dev > npm run development glob error [Error: EACCES: permission denied, ...
GAV's user avatar
  • 1,213
7 votes
2 answers
23k views

How to use npm installed package in laravel application?

I want to use select2 package in my laravel 5 application. I installed it using npm install select2 and also ran npm run dev. It appears in my node_modules folder. But how do I actually refer to the ...
Raj's user avatar
  • 1,998
7 votes
5 answers
32k views

Laravel 8 Installation - npm run dev Error

[webpack-cli] Error: mix.react() is now a feature flag. Use mix.js(source, destination).react() instead at React.register (F:\Server\work\reactlaravel\lrpc1\node_modules\laravel-mix\src\components\...
Zahid Mzhmm's user avatar
7 votes
4 answers
22k views

How to setup laravel with npm using docker-compose?

I have the next docker-compose.yml file version: '2' services: # The Application app: build: context: ./ dockerfile: app.dockerfile working_dir: /var/www/html volumes: ...
Bitrix24's user avatar
  • 211
7 votes
2 answers
4k views

php artisan ui vue get ErrorException failed to open stream: No such file or directory

I'm installing vuejs for my Laravel project, but when I use command with php artisan ui vue I got an error like this: Please tell me how can I fix this error, thanks very much. ErrorException > ...
Lê Thái's user avatar
  • 101
7 votes
4 answers
4k views

Laravel Mix HMR not updating after compiling

I have Laravel Mix 4.0.13 installed. npm run watch works great, and running npm run hot it does seem to compile and detect my changes, recompiling. However, nothing changes in the browser. In the ...
Xethron's user avatar
  • 1,146
7 votes
3 answers
4k views

NPM Install fails - fsevents

I'm unable to get npm installed correctly in my laravel project. I'm running laravel on a vagrant box (ubuntu-trusty-64). When I run 'npm install' I get the first error in my pastebin (linked below). ...
curtiplas's user avatar
  • 158
7 votes
2 answers
14k views

What's the difference between npm run watch and npm run hot in Laravel?

Because these commands are both available in Laravel, I don't quite understand what's the difference between them. But I do notice that npm run hot would not be effected if I changed scss files, which ...
A-yon Lee's user avatar
  • 2,152
7 votes
2 answers
1k views

Vuetify.js how to exclude ress.css

Is there any way to exclude ress.css from Vuetify? It overrides Bootstrap and my styles. I tried just to delete in from Vuetify directory in node_modules but it didn't help
Zoom's user avatar
  • 215
7 votes
1 answer
3k views

Allocation failed - process out of memory while npm install

I have installed nodejs and npm in my aws server and there were no issues. But when I tried to install bower, I got a memory allocation error. I was able to fix it by disabling the progress bar by ...
Vineeth  Vijayan's user avatar
6 votes
6 answers
9k views

Is there a solution for npm install error in Laravel Homestead?

Windows 10, Homestead VirtualBox 6.0.8, Vagrant 2.2.5, node v12.5.0, npm v6.10.1 All i'm trying to do is npm install command inside fresh installed Laravel app, but i keep getting errors. After ...
Mihajlo Škorić's user avatar
6 votes
2 answers
29k views

LARAVEL: How to compile app.sass into app.css

UPDATE Running on Laravel 5.4.30 on Windows 10 UPDATE: Leaving the files as .scss works perfectly fine, but I do NOT want to use this in my project. I want to use indented sass, or .sass Okay, so I ...
Zach Broniszewski's user avatar
6 votes
1 answer
4k views

NPM install fails with ETXTBSY error, text file is busy

Trying to use laravel-mix, but when i try npm install, or npm install --no-bin-links, or sudo npm install, i get this error below.. I'm on windows 8.1 using homestead and vagrant.. Please any help on ...
Henry9162's user avatar

1
2 3 4 5
18