Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel 10 npm install error #3411

Closed
jeromevillaver opened this issue Jul 7, 2023 · 4 comments
Closed

Laravel 10 npm install error #3411

jeromevillaver opened this issue Jul 7, 2023 · 4 comments

Comments

@jeromevillaver
Copy link

Is crating new version of Laravel 10 is not compatible in laradock?

Cannot proceed because npm install is not completeed

npm install

Docker version 24.0.2, build cb74dfc

laradock@a67457351398:/var/www/bam-gaming$ npm install
npm ERR! code 1
npm ERR! path /var/www/bam-gaming/node_modules/esbuild
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! node:internal/errors:496
npm ERR!     ErrorCaptureStackTrace(err);
npm ERR!     ^
npm ERR! 
npm ERR! <ref *1> Error: spawnSync /var/www/bam-gaming/node_modules/esbuild/bin/esbuild ETXTBSY
npm ERR!     at Object.spawnSync (node:internal/child_process:1117:20)
npm ERR!     at spawnSync (node:child_process:871:24)
npm ERR!     at Object.execFileSync (node:child_process:914:15)
npm ERR!     at validateBinaryVersion (/var/www/bam-gaming/node_modules/esbuild/install.js:98:28)
npm ERR!     at /var/www/bam-gaming/node_modules/esbuild/install.js:285:5 {
npm ERR!   errno: -26,
npm ERR!   code: 'ETXTBSY',
npm ERR!   syscall: 'spawnSync /var/www/bam-gaming/node_modules/esbuild/bin/esbuild',
npm ERR!   path: '/var/www/bam-gaming/node_modules/esbuild/bin/esbuild',
npm ERR!   spawnargs: [ '--version' ],
npm ERR!   error: [Circular *1],
npm ERR!   status: null,
npm ERR!   signal: null,
npm ERR!   output: null,
npm ERR!   pid: 0,
npm ERR!   stdout: null,
npm ERR!   stderr: null
npm ERR! }
npm ERR! 
npm ERR! Node.js v20.3.1

npm ERR! A complete log of this run can be found in: /home/laradock/.npm/_logs/2023-07-07T05_48_58_433Z-debug-0.lo
@nightvis
Copy link

+1

@nightvis
Copy link

nightvis commented Jul 14, 2023

Windows 11 and Docker Desktop 4.21.1

npm ERR! code 1
npm ERR! path /var/www/api.kulcslyukkiado.hu/node_modules/esbuild
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! node:internal/errors:496
npm ERR! ErrorCaptureStackTrace(err);
npm ERR! ^
npm ERR!
npm ERR! <ref *1> Error: spawnSync /var/www/api.kulcslyukkiado.hu/node_modules/esbuild/bin/esbuild ETXTBSY
npm ERR! at Object.spawnSync (node:internal/child_process:1117:20)
npm ERR! at spawnSync (node:child_process:871:24)
npm ERR! at Object.execFileSync (node:child_process:914:15)
npm ERR! at validateBinaryVersion (/var/www/api.kulcslyukkiado.hu/node_modules/esbuild/install.js:98:28)
npm ERR! at /var/www/api.kulcslyukkiado.hu/node_modules/esbuild/install.js:285:5 {
npm ERR! errno: -26,
npm ERR! code: 'ETXTBSY',
npm ERR! syscall: 'spawnSync /var/www/api.kulcslyukkiado.hu/node_modules/esbuild/bin/esbuild',
npm ERR! path: '/var/www/api.kulcslyukkiado.hu/node_modules/esbuild/bin/esbuild',
npm ERR! spawnargs: [ '--version' ],
npm ERR! error: [Circular *1],
npm ERR! status: null,
npm ERR! signal: null,
npm ERR! output: null,
npm ERR! pid: 0,
npm ERR! stdout: null,
npm ERR! stderr: null
npm ERR! }
npm ERR!
npm ERR! Node.js v20.3.1

@nightvis
Copy link

nightvis commented Jul 14, 2023

Is crating new version of Laravel 10 is not compatible in laradock?

Cannot proceed because npm install is not completeed

npm install

Docker version 24.0.2, build cb74dfc

laradock@a67457351398:/var/www/bam-gaming$ npm install
npm ERR! code 1
npm ERR! path /var/www/bam-gaming/node_modules/esbuild
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! node:internal/errors:496
npm ERR!     ErrorCaptureStackTrace(err);
npm ERR!     ^
npm ERR! 
npm ERR! <ref *1> Error: spawnSync /var/www/bam-gaming/node_modules/esbuild/bin/esbuild ETXTBSY
npm ERR!     at Object.spawnSync (node:internal/child_process:1117:20)
npm ERR!     at spawnSync (node:child_process:871:24)
npm ERR!     at Object.execFileSync (node:child_process:914:15)
npm ERR!     at validateBinaryVersion (/var/www/bam-gaming/node_modules/esbuild/install.js:98:28)
npm ERR!     at /var/www/bam-gaming/node_modules/esbuild/install.js:285:5 {
npm ERR!   errno: -26,
npm ERR!   code: 'ETXTBSY',
npm ERR!   syscall: 'spawnSync /var/www/bam-gaming/node_modules/esbuild/bin/esbuild',
npm ERR!   path: '/var/www/bam-gaming/node_modules/esbuild/bin/esbuild',
npm ERR!   spawnargs: [ '--version' ],
npm ERR!   error: [Circular *1],
npm ERR!   status: null,
npm ERR!   signal: null,
npm ERR!   output: null,
npm ERR!   pid: 0,
npm ERR!   stdout: null,
npm ERR!   stderr: null
npm ERR! }
npm ERR! 
npm ERR! Node.js v20.3.1

npm ERR! A complete log of this run can be found in: /home/laradock/.npm/_logs/2023-07-07T05_48_58_433Z-debug-0.lo

change that line in .env file:

original: WORKSPACE_NODE_VERSION=node
new: WORKSPACE_NODE_VERSION=20.4.0

Then rebuild workspace this command: docker-compose build --no-cache workspace

@makowskid
Copy link
Contributor

Closing because it's a local configuration issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants