Bakery stuck at NPM


#1

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?


#2

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

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


#3

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 [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN rollback Rolling back [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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 [email protected] 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: [email protected] (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: [email protected] (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: [email protected] (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: [email protected] (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/[email protected] 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/[email protected] uf-assets-install: gulp bower-install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @userfrosting/[email protected] 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.


#4

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.