-
Notifications
You must be signed in to change notification settings - Fork 363
npm warn Unknown project config "public-hoist-pattern". #488
Description
Installer Version
5.25.1
Description
Hello, I have written a shell-installer that installs a complete Laravel-Environment with the newest possible software versions for myself and with the latest versions of PHP, Composer, Laravel-Installer and NPM; I get the following notices/errors on an installation using the Laravel Installer:
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
INFO Application key set successfully.
┌ Would you like to run npm install and npm run build? ────────┐
│ Yes │
└──────────────────────────────────────────────────────────────┘
npm warn Unknown project config "public-hoist-pattern". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
added 380 packages, and audited 381 packages in 15s
152 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
npm warn Unknown project config "public-hoist-pattern". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
> build
> vite build
vite v8.0.3 building client environment for production...
[plugin @laravel/vite-plugin-wayfinder] Types generated for actions, routes, form variants
✓ 520 modules transformed.
computing gzip size...
public/build/manifest.json 0.63 kB │ gzip: 0.23 kB
public/build/assets/app-CgZAWUoi.css 20.54 kB │ gzip: 4.96 kB
public/build/assets/Welcome-DDW410SU.js 27.31 kB │ gzip: 5.74 kB
public/build/assets/app-Dq8fsAag.js 160.42 kB │ gzip: 54.87 kB
✓ built in 425ms
INFO Application ready in [/srv/http/example.com]. You can start your local development using:
➜ cd /srv/http/example.com
➜ composer run dev
New to Laravel? Check out our documentation. Build something amazing!
Here an extracted excerpt of the relevant bug:
npm warn Unknown project config "public-hoist-pattern". This will stop working in the next major version of npm. See
npm help npmrcfor supported config options.
Here are the relevant versions used:
http@example:~$ php -v
PHP 8.5.4 (cli) (built: Mar 30 2026 12:25:59) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.5.4, Copyright (c) Zend Technologies
with Zend OPcache v8.5.4, Copyright (c), by Zend Technologies
http@example:~$ composer -V
Composer version 2.9.5 2026-01-29 11:40:53
PHP version 8.5.4 (/usr/local/bin/php)
Run the "diagnose" command to get more detailed diagnostics output.
http@example:~$ npm -v
11.11.1
http@example:~$ laravel -V
Laravel Installer 5.25.1
Thank you for your attention.
Steps To Reproduce
Just a normal Laravel installation using the latest Laravel-Installer with the newest NPM (11.11.1) chosing "Yes" on the question "Would you like to run npm install and npm run build?"