Bakery stuck at NPM

When installing Userfrosting on a Ubuntu 18.04 LTS VM running on VMware Player on a Windows 10 PC, the Bakery gets stuck at the part where it builds its assets with Bower and NPM. My first try said using Bower was deprecated or something like that. How could I still install it without this being a problem?

Do you have an error showing up, or it just hang?

Bower is deprecated, but it shouldn’t break anything yet.

I am also trying to install in a virtual environment right now and getting the same error. Attached is the output from my command line software when I execute the php bakery bake command.

UserFrosting’s Database Setup Wizard

! [NOTE] Database already setup. Use the php bakery setup:db --force command
! to run db setup again.

UserFrosting’s SMTP Setup Wizard

! [NOTE] SMTP already setup. Use the php bakery setup:smtp --force command to
! run SMTP setup again.

UserFrosting

UserFrosing version : 4.1.21
OS Name : Linux
Project Root : /home/vagrant/userfrosting
Environment mode :
PHP Version : 7.2.9-1+ubuntu18.04.1+deb.sury.org+1
Node Version : v8.11.4
NPM Version : 6.4.0

Loaded sprinkles

  • core
  • account
  • admin

Database config

DRIVER : mysql
HOST : localhost
PORT : 3306
DATABASE : userfrosting
USERNAME : homestead
PASSWORD : *********

Testing database connection…

Database connection successful

[OK] Ready to bake !

UserFrosting’s Migrator

Fetching available migrations

Fetching from core
Fetching from account
Fetching from admin

[OK] Nothing to migrate !

Root account setup

! [NOTE] Table ‘users’ is not empty. Skipping root account setup. To set up the
! root account again, please truncate or drop the table and try again.

UserFrosting’s Assets Builder

Installing npm dependencies

npm install
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated gulp-util@2.2.20: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN rollback Rolling back ajv@4.11.8 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/ajv/package.json.210328081’
npm WARN rollback Rolling back component-emitter@1.2.1 failed (this is probablyharmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/base/node_modules/component-emitter/package.json.4068069149’
npm WARN rollback Rolling back co@4.6.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/ajv/node_modules/co/package.json.3134920733’
npm WARN rollback Rolling back is-accessor-descriptor@1.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/base/node_modules/is-accessor-descriptor/package.json.1185376643’
npm WARN rollback Rolling back is-descriptor@1.0.2 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/base/node_modules/is-descriptor/package.json.553201918’
npm WARN rollback Rolling back is-data-descriptor@1.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/base/node_modules/is-data-descriptor/package.json.2648942430’
npm WARN rollback Rolling back arr-flatten@1.1.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/braces/node_modules/arr-flatten/package.json.3329821542’
npm WARN rollback Rolling back array-unique@0.3.2 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/braces/node_modules/array-unique/package.json.3980990173’
npm WARN rollback Rolling back define-property@1.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/base/node_modules/define-property/package.json.2006124282’
npm WARN rollback Rolling back component-emitter@1.2.1 failed (this is probablyharmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/cache-base/node_modules/component-emitter/package.json.1795603636’
npm WARN rollback Rolling back ansi-styles@2.2.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/chalk/node_modules/ansi-styles/package.json.3356671815’
npm WARN rollback Rolling back class-utils@0.3.6 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/class-utils/package.json.259125162’
npm WARN rollback Rolling back define-property@0.2.5 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/class-utils/node_modules/define-property/package.json.621918019’
npm WARN rollback Rolling back arr-union@3.1.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/class-utils/node_modules/arr-union/package.json.987197281’
npm WARN rollback Rolling back currently-unhandled@0.4.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/currently-unhandled/package.json.1965468154’
npm WARN rollback Rolling back extend-shallow@2.0.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/braces/node_modules/extend-shallow/package.json.1179130112’
npm WARN rollback Rolling back source-map@0.6.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/css/node_modules/source-map/package.json.1304531770’
npm WARN rollback Rolling back defaults@1.0.3 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/defaults/package.json.3308144475’
npm WARN rollback Rolling back array-find-index@1.0.2 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/currently-unhandled/node_modules/array-find-index/package.json.3946112228’
npm WARN rollback Rolling back assign-symbols@1.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/extend-shallow/node_modules/assign-symbols/package.json.647782358’
npm WARN rollback Rolling back extend-shallow@3.0.2 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/extend-shallow/package.json.3050108941’
npm WARN rollback Rolling back define-property@0.2.5 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/expand-brackets/node_modules/define-property/package.json.927185659’
npm WARN rollback Rolling back clone@1.0.4 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/defaults/node_modules/clone/package.json.3700886047’
npm WARN rollback Rolling back extend-shallow@2.0.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/extglob/node_modules/extend-shallow/package.json.2682643952’
npm WARN rollback Rolling back is-extendable@1.0.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/extend-shallow/node_modules/is-extendable/package.json.4001898619’
npm WARN rollback Rolling back extend-shallow@2.0.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/expand-brackets/node_modules/extend-shallow/package.json.562525531’
npm WARN rollback Rolling back is-data-descriptor@1.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/extglob/node_modules/is-data-descriptor/package.json.209158793’
npm WARN rollback Rolling back is-descriptor@1.0.2 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/extglob/node_modules/is-descriptor/package.json.3337191491’
npm WARN rollback Rolling back define-property@1.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/extglob/node_modules/define-property/package.json.3050961460’
npm WARN rollback Rolling back fancy-log@1.3.2 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/fancy-log/package.json.3501698259’
npm WARN rollback Rolling back get-imports@1.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/get-imports/package.json.2956081270’
npm WARN rollback Rolling back color-support@1.1.3 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/fancy-log/node_modules/color-support/package.json.570912976’
npm WARN rollback Rolling back ansi-gray@0.1.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/fancy-log/node_modules/ansi-gray/package.json.1824251669’
npm WARN rollback Rolling back ansi-wrap@0.1.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/fancy-log/node_modules/ansi-wrap/package.json.3868107202’
npm WARN rollback Rolling back balanced-match@1.0.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/glob-stream/node_modules/balanced-match/package.json.2018791196’
npm WARN rollback Rolling back form-data@2.1.4 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/form-data/package.json.3631507027’
npm WARN rollback Rolling back asynckit@0.4.0 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/form-data/node_modules/asynckit/package.json.2077281936’
npm WARN rollback Rolling back array-uniq@1.0.3 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/get-imports/node_modules/array-uniq/package.json.4125757817’
npm WARN rollback Rolling back glob-stream@3.1.18 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/glob-stream/package.json.3602641913’
npm WARN rollback Rolling back concat-map@0.0.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/glob-stream/node_modules/concat-map/package.json.248186916’
npm WARN rollback Rolling back brace-expansion@1.1.11 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/glob-stream/node_modules/brace-expansion/package.json.2855072112’
npm WARN rollback Rolling back minimatch@2.0.10 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/glob-stream/node_modules/minimatch/package.json.2994670882’
npm WARN rollback Rolling back glob@4.5.3 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/glob-stream/node_modules/glob/package.json.3789874973’
npm WARN rollback Rolling back through2@0.6.5 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/glob-stream/node_modules/through2/package.json.3536237864’
npm WARN rollback Rolling back readable-stream@1.0.34 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/glob-stream/node_modules/readable-stream/package.json.756737858’
npm WARN rollback Rolling back chalk@1.1.3 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/chalk/node_modules/ansi-styles/package.json.3356671815’
npm WARN rollback Rolling back css@2.2.4 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/css/node_modules/source-map/package.json.1304531770’
npm WARN rollback Rolling back cache-base@1.0.1 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/cache-base/node_modules/component-emitter/package.json.1795603636’
npm WARN rollback Rolling back base@0.11.2 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/base/node_modules/component-emitter/package.json.4068069149’
npm WARN rollback Rolling back braces@2.3.2 failed (this is probably harmless):ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/braces/node_modules/extend-shallow/package.json.1179130112’
npm WARN rollback Rolling back expand-brackets@2.1.4 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/expand-brackets/node_modules/define-property/package.json.927185659’
npm WARN rollback Rolling back extglob@2.0.4 failed (this is probably harmless): ETXTBSY: text file is busy, unlink ‘/home/vagrant/userfrosting/build/node_modules/extglob/node_modules/array-unique/package.json.1221032826’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ajv@4.11.8 (node_modules/ajv):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ETXTBSY: text file is busy, rename ‘/home/vagrant/userfrosting/build/node_modules/ajv/package.json.210328081’ -> ‘/home/vagrant/userfrosting/build/node_modules/ajv/package.json’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: form-data@2.1.4 (node_modules/form-data):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ETXTBSY: text file is busy, rename ‘/home/vagrant/userfrosting/build/node_modules/form-data/package.json.3631507027’ -> ‘/home/vagrant/userfrosting/build/node_modules/form-data/package.json’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: co@4.6.0 (node_modules/ajv/node_modules/co):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ETXTBSY: text file is busy, rename ‘/home/vagrant/userfrosting/build/node_modules/ajv/node_modules/co/package.json.3134920733’ -> ‘/home/vagrant/userfrosting/build/node_modules/ajv/node_modules/co/package.json’
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: asynckit@0.4.0 (node_modules/form-data/node_modules/asynckit):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ETXTBSY: text file is busy, rename ‘/home/vagrant/userfrosting/build/node_modules/form-data/node_modules/asynckit/package.json.2077281936’ -> ‘/home/vagrant/userfrosting/build/node_modules/form-data/node_modules/asynckit/package.json’

npm ERR! path /home/vagrant/userfrosting/build/node_modules/currently-unhandled/package.json.1965468154
npm ERR! code ETXTBSY
npm ERR! errno -26
npm ERR! syscall rename
npm ERR! ETXTBSY: text file is busy, rename ‘/home/vagrant/userfrosting/build/node_modules/currently-unhandled/package.json.1965468154’ -> ‘/home/vagrant/userfrosting/build/node_modules/currently-unhandled/package.json’

npm ERR! A complete log of this run can be found in:
npm ERR! /home/vagrant/.npm/_logs/2018-11-07T04_04_06_986Z-debug.log

Installing assets bundles

npm run uf-assets-install

@userfrosting/userfrosting@4.1.0 uf-assets-install /home/vagrant/userfrosting/build
gulp bower-install

[04:04:07] Local gulp not found in ~/userfrosting/build
[04:04:07] Try running: npm install gulp
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @userfrosting/userfrosting@4.1.0 uf-assets-install: gulp bower-install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @userfrosting/userfrosting@4.1.0 uf-assets-install 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! /home/vagrant/.npm/_logs/2018-11-07T04_04_07_897Z-debug.log

Testing assets installation

[ERROR] Assets installation seems to have failed. Directory
/home/vagrant/userfrosting/app/sprinkles/core/assets/vendor/* is
empty, but it shouldn’t be. Check the above log for any errors.

Check out this thread: Npm ERR! ETXTBSY: text file is busy with Homestead installation on Windows host OS - seems like it might be another manifestation of an issue with the virtual file system on top of a Windows host.

Also take a look at https://github.com/laravel/homestead/issues/922.