Category : npm

Whenever I do a npm install after installing the package composer require laravel/ui:^2.4 or any other package, the console shows me many errors. They are as follows: npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure ..

Read more

I am currently performing these terminal commands: composer create-project –prefer-dist laravel/laravel:^7.0 composer require laravel/ui:^2.4 php artisan ui bootstrap –auth npm install && npm run dev This returns the following error sh: mix: command not found npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT npm ERR! @ development: ..

Read more

I have following webpack.mix.js in my laravel project. Just const mix = require(‘laravel-mix’); mix.js(‘resources/js/app.js’, ‘public/js’) .scripts([ ‘public/js/app.js’, ‘resources/js/includes/script.js’ ], ‘public/js/app.js’) .postCss(‘resources/css/app.css’, ‘public/css’, [ require(‘postcss-import’), require(‘tailwindcss’), require(‘postcss-mixins’), require(‘postcss-simple-vars’), require(‘postcss-nested’), require(‘autoprefixer’), ]); If delete postcss-mixins and postcss-simple-vars everything works well. But these 2 plugins gives me same error Error: PostCSS plugin postcss-mixins requires PostCSS 8. Error: PostCSS ..

Read more

I have created a project in Laravel 8, and when I run npm run dev it throws the following error: ERROR in ./resources/sass/app.scss (./node_modules/css-loader??ref–5-2!./node_modules/postcss-loader/src??postcss0!./node_modules/resolve-url-loader??ref–5-4!./node_modules/sass-loader/dist/cjs.js??ref–5-5!./resources/sass/app.scss) Module build failed (from ./node_modules/postcss-loader/src/index.js): Error: Failed to find ‘[email protected]/fontawesome-pro/css/all.min.css’ in [ /Users/me/Laravel/<projectName>/resources/sass ] at resolveModule.catch.catch (/Users/me/Laravel/<projectName>/node_modules/postcss-import/lib/resolve-id.js:35:13) at <anonymous> @ ./resources/sass/app.scss 2:14-253 npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ..

Read more

This are my tailwindcss errors: npm WARN @tailwindcss/[email protected] requires a peer of [email protected]^1.0 but none is installed. You must install peer dependencies yourself. npm WARN @tailwindcss/[email protected] requires a peer of [email protected]^1.5.0 but none is installed. You must install peer dependencies yourself. npm WARN @tailwindcss/[email protected] requires a peer of [email protected]^1.8.3 but none is installed. You must ..

Read more

So I started learning laravel framework. And I am trying to use npm run dev but I get errors that I can’t find how to fix.. $ npm run dev > 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 [webpack-cli] Unknown argument: –hide-modules npm ERR! code 2 npm ERR! ..

Read more

I have some npm packages in my laravel project. After i deployed to heroku, i found that tailwindcss isnot working. How should i do to initiate npm to heroku? package.json "devDependencies": { "@tailwindcss/postcss7-compat": "^2.0.2", "autoprefixer": "^9.8.6", "axios": "^0.19", "cross-env": "^7.0", "laravel-mix": "^5.0.1", "lodash": "^4.17.19", "postcss": "^7.0.35", "resolve-url-loader": "^3.1.0", "sass": "^1.15.2", "sass-loader": "^8.0.0", "tailwindcss": "npm:@tailwindcss/[email protected]^2.0.2", "vue-template-compiler": ..

Read more

I have this error when i run npm run dev or npm run watch and I didn’t find what is the mess. It’s happens in a all fresh Laravel 8 app. It looks like happen when I use the developement command ERROR in ./resources/css/app.css Module build failed (from ./node_modules/css-loader/index.js): ModuleBuildError: Module build failed (from ./node_modules/postcss-loader/src/index.js): ..

Read more

Laravel Mix Version: 5.0.5 (npm list –depth=0) Node Version (node -v): 12.16.1 NPM Version (npm -v): 6.13.4 OS: Win10 Description: I’ve just experienced for first time this error which puzzles me. I could not find solution that worked for me by googling. I’ve tried reseting everyhing by deleting node_modules and reinstalling, but that did not ..

Read more

Quick question, shouldn’t be too hard… hopefully. I’m running Nginx with two Laravel projects being hosted. The following directories are where they are being stored. /var/www/site.kara /var/www/site.arkmanager The location of the projects are http://10.0.0.2/kara and http://10.0.0.2/arkmanager. The site.kara laravel project is loading images just fine. However I have an issue with the site.arkmanager locating images ..

Read more

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, scandir ‘/root/.npm/_logs’] { errno: -13, code: ‘EACCES’, syscall: ‘scandir’, path: ‘/root/.npm/_logs’ } > development > cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js –progress –hide- modules ..

Read more