Laravel 8 Installation - npm install && npm run dev Errors - php

I am getting an errors while writing the command npm install && npm run dev in Laravel.
Here is the errors
WARN engine sass#1.57.1: wanted: {"node":">=12.0.0"} (current: {"node":"8.10.0", npm WARN deprecated popper.js#1.16.1: You can find the new Popper v2 at #popperj s/core, this package is dedicated to the legacy v1
npm WARN deprecated axios#0.19.2: Critical security vulnerability fixed in v0.21 .1. For more information, see https://github.com/axios/axios/pull/3410
loadDep:vue2-dropzone → a ▄ ╢█████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine vue-trumbowyg#3.6.2: wanted: {"node":">= 6.9.0","npm":">= 3.10.8"} ( loadDep:vue2-dropzone → g ▄ ╢█████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine #coreui/coreui#2.1.16: wanted: {"node":">= 8.7","npm":">= 5"} (curre npm ERR! Linux 4.15.0-197-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code EMISSINGARG
npm ERR! typeerror Error: Missing required argument #1
npm ERR! typeerror at andLogAndFinish (/usr/share/npm/lib/fetch-package-meta data.js:31:3)
npm ERR! typeerror at fetchPackageMetadata (/usr/share/npm/lib/fetch-package -metadata.js:51:22)
npm ERR! typeerror at resolveWithNewModule (/usr/share/npm/lib/install/deps. js:456:12)
npm ERR! typeerror at /usr/share/npm/lib/install/deps.js:457:7
npm ERR! typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror at /usr/share/npm/lib/fetch-package-metadata.js:37:12
npm ERR! typeerror at addRequestedAndFinish (/usr/share/npm/lib/fetch-packag e-metadata.js:82:5)
npm ERR! typeerror at returnAndAddMetadata (/usr/share/npm/lib/fetch-package -metadata.js:117:7)
npm ERR! typeerror at pickVersionFromRegistryDocument (/usr/share/npm/lib/fe tch-package-metadata.js:134:20)
npm ERR! typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror This is an error with npm itself. Please report this error at :
npm ERR! typeerror <http://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/market2/growex2/npm-debug.log
I need to install node.js in Laravel.

On the first line of your console error, you can see that it says you need an upgraded version of node.
Your node version is 8.10.0, and you need node version 12.0.0 or superior to install sass.
I recommend using nvm to change your node version and in case you have projects using an older node version you can just switch versions this way easily.

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.

How do I update my Nodejs in laravel dev. to LTS

How do I update my Node to LTS? I keep getting errors when I try "npm install" in my terminal. Please help
npm WARN deprecated minimatch#2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch#0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs#1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs#^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to
find it in the tree.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\Goodness\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "--no-bin-links"
npm ERR! node v4.4.6
npm ERR! npm v3.10.9
npm ERR! code ENOGIT
npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! Please include the following file with any support request:
npm ERR! C:\xampp\htdocs\event\npm-debug.log

npm ERR! cb is not a function

I am using Laravel 5.3-dev,
I try installing Laravel Elixir,and I follow the documentation,https://laravel.com/docs/master/elixir
When I run npm install --no-bin-links,
there is something wrong,
and npm install is the same result.
as follow:
$ npm install --no-bin-links
npm WARN deprecated graceful-fs#3.0.8: graceful-fs v3.0.0 and before will fail o n node releases >= v7.0. Please update to graceful-fs#^4.0.0 as soon as possible . Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated minimatch#2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch#0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated lodash#1.0.2: lodash#<3.0.0 is no longer maintained. Upgrade to lodash#^4.0.0.
npm WARN deprecated graceful-fs#1.2.3: graceful-fs v3.0.0 and before will fail o n node releases >= v7.0. Please update to graceful-fs#^4.0.0 as soon as possible . Use 'npm ls graceful-fs' to find it in the tree.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\dell\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js " "install" "--no-bin-links"
npm ERR! node v7.0.0-nightly2016080329e49fc286
npm ERR! npm v3.10.5
npm ERR! cb is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\dell\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js " "install" "--no-bin-links"
npm ERR! node v7.0.0-nightly2016080329e49fc286
npm ERR! npm v3.10.5
npm ERR! cb is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! D:\wnmp\www\laravel-5-3-demo\npm-debug.log
What should I do?
According to the error message, you are using Node v7 nightly. This has (or had?) breaking changes in it, including requirements that certain synchronous functions supply callbacks that weren't required in v6. An error that "cb is not a function" sure sounds suspiciously like that problem.
Use either the current or LTS version of Node.js. As of this writing, the current version of Node.js is 6.3.1. The LTS version is 4.4.7.
Don't use the nightly version unless you have a good reason to, such as trying to test something specific. If you use a nightly version, be prepared to have problems you will need to dive in and investigate.

Homestead: ERR! tar unpack untar error

When I execute commmand sudo npm install from project folder I get following error:
npm WARN package.json # No repository field.
npm WARN package.json # No license field.
npm WARN optional dep failed, continuing fsevents#1.0.2
npm WARN peerDependencies The peer dependency vueify-insert-css#^1.0.0 included from vueify will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency babel-runtime#^5.8.25 included from vueify will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency vue-hot-reload-api#^1.2.0 included from vueify will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN optional dep failed, continuing fsevents#1.0.2
npm ERR! tar.unpack untar error /home/vagrant/.npm/spdx-expression- parse/1.0.0/package.tgz
> expect#1.12.2 postinstall /home/vagrant/Code/laravel- spark/node_modules/laravel-elixir/node_modules/gulp-phpspec/node_modules/expect
> node ./npm-scripts/postinstall.js
npm WARN optional dep failed, continuing fsevents#1.0.2
npm ERR! tar.unpack untar error /home/vagrant/.npm/hosted-git-info/2.1.4/package.tgz
npm ERR! tar.unpack untar error /home/vagrant/.npm/validate-npm-package-license/3.0.1/package.tgz
npm ERR! tar.unpack untar error /home/vagrant/.npm/normalize-package-data/2.3.4/package.tgz
npm ERR! tar.unpack untar error /home/vagrant/.npm/hosted-git-info/2.1.4/package.tgz
npm ERR! tar.unpack untar error /home/vagrant/.npm/hosted-git-info/2.1.4/package.tgz
npm ERR! tar.unpack untar error /home/vagrant/.npm/normalize-package- data/2.3.4/package.tgz
npm ERR! tar.unpack untar error /home/vagrant/.npm/hosted-git- info/2.1.4/package.tgz
npm ERR! tar.unpack untar error /home/vagrant/.npm/normalize-package- data/2.3.4/package.tgz
npm WARN optional dep failed, continuing fsevents#1.0.2
npm ERR! tar.unpack untar error /home/vagrant/.npm/request/2.11.4/package.tgz
npm ERR! tar.unpack untar error /home/vagrant/.npm/redeyed/0.5.0/package.tgz
npm WARN optional dep failed, continuing utf-8-validate#1.2.1
npm WARN optional dep failed, continuing bufferutil#1.2.1
npm WARN optional dep failed, continuing utf-8-validate#1.2.1
> bufferutil#1.2.1 install /home/vagrant/Code/laravel- spark/node_modules/laravel-elixir/node_modules/browser- sync/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/ bufferutil
> node-gyp rebuild
make: Entering directory `/home/vagrant/Code/laravel- spark/node_modules/laravel-elixir/node_modules/browser- sync/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/ bufferutil/build'
make: Warning: File `bufferutil.target.mk' has modification time 1.8 s in the future
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
In file included from ../src/bufferutil.cc:8:0:
/home/vagrant/.node-gyp/4.1.1/include/node/node.h:428:3: fatal error: opening dependency file ./Release/.deps/Release/obj.target/bufferutil/src/bufferutil.o.d.raw: Operation not permitted
}
^
/home/vagrant/.node-gyp/4.1.1/include/node/node.h:450:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0)
^
../src/bufferutil.cc:120:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(bufferutil, init)
^
compilation terminated.
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1
make: Leaving directory `/home/vagrant/Code/laravel- spark/node_modules/laravel-elixir/node_modules/browser- sync/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/ bufferutil/build'
gyp ERR! build error
Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.19.0-25-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node- gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/vagrant/Code/laravel-spark/node_modules/laravel- elixir/node_modules/browser- sync/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/ bufferutil
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing bufferutil#1.2.1
npm ERR! tar.unpack untar error /home/vagrant/.npm/is-fullwidth-code- point/1.0.0/package.tgz
npm ERR! tar.unpack untar error /home/vagrant/.npm/lodash._createpadding/3.6.1/package.tgz
npm ERR! tar.unpack untar error /home/vagrant/.npm/minimatch/1.0.0/package.tgz
npm WARN optional dep failed, continuing source-map#0.2.0
npm WARN optional dep failed, continuing request#2.65.0
npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.1.1
npm ERR! npm v2.14.4
npm ERR! path /home/vagrant/Code/laravel- spark/node_modules/gulp/node_modules/gulp- util/node_modules/dateformat/node_modules/meow/node_modules/redent/node_modules/ indent-string/node_modules/repeating/node_modules/is- finite/package.json.1e4bb64b90431a2b7469fc227112bf51
npm ERR! code EPERM
npm ERR! errno -1
npm ERR! syscall open
npm ERR! Error: EPERM: operation not permitted, open '/home/vagrant/Code/laravel-spark/node_modules/gulp/node_modules/gulp- util/node_modules/dateformat/node_modules/meow/node_modules/redent/node_modules/ indent-string/node_modules/repeating/node_modules/is- finite/package.json.1e4bb64b90431a2b7469fc227112bf51'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM: operation not permitted, open '/home/vagrant/Code/laravel-spark/node_modules/gulp/node_modules/gulp- util/node_modules/dateformat/node_modules/meow/node_modules/redent/node_modules/ indent-string/node_modules/repeating/node_modules/is- finite/package.json.1e4bb64b90431a2b7469fc227112bf51']
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'open',
npm ERR! path: '/home/vagrant/Code/laravel- spark/node_modules/gulp/node_modules/gulp- util/node_modules/dateformat/node_modules/meow/node_modules/redent/node_modules/ indent-string/node_modules/repeating/node_modules/is- finite/package.json.1e4bb64b90431a2b7469fc227112bf51' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.1.1
npm ERR! npm v2.14.4
npm ERR! path npm-debug.log.a08378d997b4655c60a2069f82821277
npm ERR! code ETXTBSY
npm ERR! errno -26
npm ERR! syscall rename
npm ERR! ETXTBSY: text file is busy, rename 'npm- debug.log.a08378d997b4655c60a2069f82821277' -> 'npm-debug.log'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /home/vagrant/Code/laravel-spark/npm-debug.log
I tried also use command sudo npm cache clean but with no effect. But when I execute command sudo npm install inside home folder it works fine. Could this cause problem with permissions?
Thanks for help
I update node to version 3.4 and seems to fix this problem.

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