ENONET error on Laravel 5.6: file not found abbrev.DELETE
I am trying to install the npm packages on a fresh install of Laravel 5.6 on homestead but I keep getting an npm error.
vagrant@homestead:~/project$ sudo npm install
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, rename '/home/vagrant/project/node_modules/.staging/fsevents-d083c106/node_modules/abbrev' -> '/home/vagrant/project/node_modules/.staging/abbrev-cbbeb1a0'
npm ERR! path /home/vagrant/project/node_modules/abbrev
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/home/vagrant/project/node_modules/abbrev' -> '/home/vagrant/project/node_modules/.abbrev.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /home/vagrant/.npm/_logs/2018-04-04T19_25_44_097Z-debug.log
I've tried:
Updating npm & node
Deleting node_modules and running npm install
Using sudo
I am on a windows machine using laravel homestead.
@rin4ik with that now it moved to another package, acorn.
vagrant@homestead:~/project$ sudo npm cache clean --force
npm WARN using --force I sure hope you know what you are doing.
vagrant@homestead:~/project$ rm -rf node_modules/
vagrant@homestead:~/project$ npm install
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, rename '/home/vagrant/project/node_modules/.staging/fsevents-d083c106/node_modules/ansi-regex' -> '/home/vagrant/project/node_modules/.staging/ansi-regex-d8c30e7d'
npm ERR! path /home/vagrant/project/node_modules/acorn
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/home/vagrant/project/node_modules/acorn' -> '/home/vagrant/project/node_modules/.acorn.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
@rin4ik Hey that worked, the primary issue is solved but now when I tried to compile assets with npm run dev I get:
vagrant@homestead:~/project$ npm run dev
> @ dev /home/vagrant/project
> npm run development
> @ development /home/vagrant/project
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
sh: 1: cross-env: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! spawn ENOENT
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! 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.