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

npm install time is snaillike #2432

Open
erietz opened this issue May 22, 2024 · 1 comment
Open

npm install time is snaillike #2432

erietz opened this issue May 22, 2024 · 1 comment

Comments

@erietz
Copy link

erietz commented May 22, 2024

Bug Report

  • At what date and time did you most recently experience the problem?

Right now, while trying to deploy my code to prod. And all of the previous times.

  • Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use.

Azure Web Apps

  • If your repo is publicly available please share its URL:

No

  • What happened?

npm install takes waaaaaaaaaaaaayyyyyyy too long during a node.js deployment on Linux.

  • What did you expect or want to happen?

Running npm install on my local machine takes 30s. In the app service deploy the Running oryx build... step takes 30m.

  • Local machine

    • Screenshot 2024-05-22 at 9 53 01 AM
  • Azure web app

    • Screenshot 2024-05-21 at 3 08 11 PM
  • How can we reproduce it?

Deploy a node.js app via Continuous deployment to Azure App Service.

  • Do you have log output? Please include between the backticks:
Command: oryx build /home/site/repository -o /home/site/wwwroot --platform nodejs --platform-version 18 -p virtualenv_name= --log-file /tmp/build-debug.log  -i /tmp/8dc79cc9231d3f5 -p compress_node_modules=tar-gz | tee /tmp/oryx-build.log
Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version: 0.2.20230508.1, Commit: 7fe2bf39b357dd68572b438a85ca50b5ecfb4592, ReleaseTagName: 20230508.1

Build Operation ID: 0fffd254537f2724
Repository Commit : 9b3c9f88ccf0ebaa48839326ea5334db51050d7e
OS Type           : bullseye
Image Type        : githubactions

Detecting platforms...
Detected following platforms:
  nodejs: 18.19.1
Version '18.19.1' of platform 'nodejs' is not installed. Generating script to install it...
Detected the following frameworks: Express

Using intermediate directory '/tmp/8dc79cc9231d3f5'.

Copying files to the intermediate directory...
Done in 9 sec(s).

Source directory     : /tmp/8dc79cc9231d3f5
Destination directory: /home/site/wwwroot


Downloading and extracting 'nodejs' version '18.19.1' to '/tmp/oryx/platforms/nodejs/18.19.1'...
Detected image debian flavor: bullseye.
Downloaded in 1 sec(s).
Verifying checksum...
Extracting contents...
performing sha512 checksum for: nodejs...
Done in 2 sec(s).

Removing existing manifest file
Creating directory for command manifest file if it does not exist
Creating a manifest file...
Node Build Command Manifest file created.

Using Node version:
v18.19.1

Using Npm version:
10.2.4

Running 'npm install'...

...
... removing this as it contains information about the project
...

added 1265 packages, and audited 1266 packages in 30m

...
... removing this as it contains information about the project
...

Zipping existing node_modules folder...
Done in 21 sec(s).
Preparing output...

Copying files to destination directory '/home/site/wwwroot'...
Done in 10 sec(s).

Removing existing manifest file
Creating a manifest file...
Manifest file created.
Copying .ostype to manifest output directory.

Done in 1857 sec(s).
@LilTimithywidDahSemi
Copy link

#2459

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

No branches or pull requests

2 participants