ENOENT: no such file or directory! in Laravel - php

When I run npm run dev for Laravel Mix in webpack.mix.js, I get the following error: I don't know the problem. It just sticks to one of my files.
[webpack-cli] [Error: ENOENT: no such file or directory, open
'C:\Users\AsemaN\Desktop\AryaBMS\resources\css\MainPage\sweetaleret2.all.min.css']
{ errno: -4058, code: 'ENOENT', syscall: 'open', path:
'C:\Users\AsemaN\Desktop\AryaBMS\resources\css\MainPage\sweetaleret2.all.min.css'
} npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! AryaBMS#1.0.0
development: mix npm ERR! Exit status 2 npm ERR! npm ERR! Failed at
the AryaBMS#1.0.0 development script. npm ERR! This is probably not a
problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\AsemaN\AppData\Roaming\npm-cache_logs\2022-01-26T19_09_23_305Z-debug.log
npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! AryaBMS#1.0.0 dev:
npm run development npm ERR! Exit status 2 npm ERR! npm ERR! Failed
at the AryaBMS#1.0.0 dev script. npm ERR! This is probably not a
problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\AsemaN\AppData\Roaming\npm-cache_logs\2022-01-26T19_09_23_491Z-debug.log

The application expects to find a file at C:\Users\AsemaN\Desktop\AryaBMS\resources\css\MainPage\sweetaleret2.all.min.css. However, that file does not exist. EOENT means 'Error NO ENTity,' which translates to no directory or file was found in English. So you either need to create the expected directory/file or configure your application to look in the correct directory for sweetaleret2.all.min.css. Perhaps you misspelled the file name somewhere?

Related

errno -71 when installing NPM

I'm working with Laravel Homestead, and I'm trying to install npm to use Vue.js. Unfortunately, I've got the following error.
npm ERR! code EPROTO npm ERR! syscall symlink npm ERR! path
../#babel/parser/bin/babel-parser.js npm ERR! dest
/home/vagrant/code/agenda/node_modules/.bin/parser npm ERR! errno -71
npm ERR! EPROTO: protocol error, symlink
'../#babel/parser/bin/babel-parser.js' ... npm ERR! A complete log
of this run can be found in: npm ERR!
/home/vagrant/.npm/_logs/2021-06-22T10_09_53_969Z-debug.log
I've got the log file, but I don't know what I have to do to solve this.

Npm install&&npm run dev why isn't it working?

I did npm install&&npm run dev and this is what happend do you know a fix for this. I don't know were to type in use stats.childre: true so can you figer it out for me.
egg#macbook-air-von-egg Ecommerce % npm install&&npm run dev
1 ERROR in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details)
webpack compiled with 2 errors and 3 warnings
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! # development: `mix`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the # development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/egg/.npm/_logs/2021-06-26T16_54_50_520Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! # dev: `npm run development`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the # dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/egg/.npm/_logs/2021-06-26T16_54_50_638Z-debug.log
egg#macbook-air-von-egg Ecommerce %

Laravel-Mix 8 with run watch

I want to load vue Component in Public file using npm run watch , it gives me a message in watch dev or build ..?
Node.js v14.15.0.
npm 6.14.8
Laravel Installer 4.1.0
npm run watch
> # watch C:\Users\ANOOD\Desktop\Laravel&vueja\Laravel_vue
> npm run development -- --watch
> # development C:\Users\ANOOD\Desktop\Laravel&vueja\Laravel_vue
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --config=node_modules/laravel-mix/setup/webpack.config.js "--watch"
The system cannot find the path specified.
events.js:292
throw er; // Unhandled 'error' event
^
Error: spawn node_modules\webpack\bin\webpack.js ENOENT
at notFoundError (C:\Users\ANOOD\AppData\Roaming\npm\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:6:26)
at verifyENOENT (C:\Users\ANOOD\AppData\Roaming\npm\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:40:16)
at ChildProcess.cp.emit (C:\Users\ANOOD\AppData\Roaming\npm\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:27:25)
at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess.cp.emit (C:\Users\ANOOD\AppData\Roaming\npm\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:30:37)
at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) {
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawn node_modules\\webpack\\bin\\webpack.js',
path: 'node_modules\\webpack\\bin\\webpack.js',
spawnargs: [
'--progress',
'--config=node_modules/laravel-mix/setup/webpack.config.js',
'--watch'
]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! # development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --config=node_modules/laravel-mix/setup/webpack.config.js "--watch"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the # development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ANOOD\AppData\Roaming\npm-cache\_logs\2020-11-10T12_23_34_863Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! # watch: `npm run development -- --watch`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the # watch script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ANOOD\AppData\Roaming\npm-cache\_logs\2020-11-10T12_23_35_071Z-debug.log
The problom was not on Laravel or npm or node_modules , simply it was the directory that I have been use when I put my laravel Project in Laravel every thing is ok but when I move it to another Directory calls Laravel&Vue it won't work and this problem apper.

npm install laravel-elixir doesn't work

I use laravel for an app. When I tried to install laravel-elixir using npm, I got this error.
` C:\OpenServer\domains\kuznets\node_modules\laravel-elixir\node_modules\gulp-sa
ss\node_modules\node-sass\vendor\win32-x64-46\binding.node ` exists.
testing binary.
Binary is fine; exiting.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "laravel-elixir" "--save-dev"
npm ERR! node v4.4.1
npm ERR! npm v2.14.20
npm ERR! path C:\Users\Ben\AppData\Roaming\npm-cache\marked\0.3.5\package.t
gz.1968964367
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\Вениамин\AppDat
a\Roaming\npm-cache\marked\0.3.5\package.tgz.1968964367' -> 'C:\Users\Вениамин\A
ppData\Roaming\npm-cache\marked\0.3.5\package.tgz'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM: operation not permitted, rename 'C:\Users\Вениамин\Ap
pData\Roaming\npm-cache\marked\0.3.5\package.tgz.1968964367' -> 'C:\Users\Вениам
ин\AppData\Roaming\npm-cache\marked\0.3.5\package.tgz']
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'rename',
npm ERR! path: 'C:\\Users\\Ben\\AppData\\Roaming\\npm-cache\\marked\\0.3.
5\\package.tgz.1968964367',
npm ERR! dest: 'C:\\Users\\Ben\\AppData\\Roaming\\npm-cache\\marked\\0.3.
5\\package.tgz',
npm ERR! parent: 'cli-usage' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! C:\OpenServer\domains\kuznets\npm-debug.log
How can I solve it? I've never met a problem like this
try this
sudo npm install laravel-elixir
or add "-g" after "install"
or if it does not work
cd usr/local/lib/node_modules
then install it there

Can't install Laravel 4 Grunt

I'm getting this error when running this command: sudo php artisan grunt:setup
I'm running Ubuntu 13.04 and using laravel 4.
I have no idea what to do now...
mikkel#mikkel-K53SV-Linux:/var/www/forum$ sudo php artisan grunt:setup
A gruntfile.js or package.json file already exist and will be replaced. Do you want to continue? [yes|no]yes
Node and NPM are installed. Continue...
Do you require CSS preprocessing? [yes|no]y
Which CSS preprocessor do you require? [less|sass|stylus]l
I did not recognize that preprocessor. Please try again. [less|sass|stylus]less
package.json & gruntfile.js successfully created!
Installing / updating required grunt plugins...
npm http GET https://registry.npmjs.org/grunt
npm http GET https://registry.npmjs.org/grunt-contrib-compress
npm http GET https://registry.npmjs.org/grunt-contrib-concat
npm http GET https://registry.npmjs.org/grunt-contrib-cssmin
npm http GET https://registry.npmjs.org/grunt-contrib-jshint
npm http GET https://registry.npmjs.org/grunt-contrib-less
npm http GET https://registry.npmjs.org/grunt-contrib-sass
npm http GET https://registry.npmjs.org/grunt-contrib-stylus
npm http GET https://registry.npmjs.org/grunt-contrib-livereload
npm http GET https://registry.npmjs.org/grunt-contrib-uglify
npm http GET https://registry.npmjs.org/grunt-contrib-watch
npm http GET https://registry.npmjs.org/grunt-notify
npm http GET https://registry.npmjs.org/grunt-phpunit
npm http GET https://registry.npmjs.org/grunt-contrib-clean
npm http 200 https://registry.npmjs.org/grunt-contrib-cssmin
npm ERR! Error: No compatible version found: grunt-contrib-cssmin#'>=0.6.1- <0.7.0-'
npm ERR! No valid targets found.
npm ERR! Perhaps not compatible with your version of node?
npm ERR! at installTargetsError (/usr/share/npm/lib/cache.js:488:10)
npm ERR! at next_ (/usr/share/npm/lib/cache.js:438:17)
npm ERR! at next (/usr/share/npm/lib/cache.js:415:44)
npm ERR! at /usr/share/npm/lib/cache.js:408:5
npm ERR! at saved (/usr/share/npm/lib/utils/npm-registry-client/get.js:147:7)
npm ERR! at Object.oncomplete (/usr/lib/nodejs/graceful-fs.js:230:7)
npm ERR! You may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /var/www/forum/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.8.0-32-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /var/www/forum
npm ERR! node -v v0.6.19
npm ERR! npm -v 1.1.4
npm ERR! message No compatible version found: grunt-contrib-cssmin#'>=0.6.1- <0.7.0-'
npm ERR! message No valid targets found.
npm ERR! message Perhaps not compatible with your version of node?
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/www/forum/npm-debug.log
npm not ok
Fixed it!
I just had to re-install node.js.

Categories