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

(fix): explicitly install npm in Dockerfile.full #1795

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

spameier
Copy link

I got this error when running docker compose up --build -d in a Project that builds from the master branches Dockerfile.full:

 > [spiderfoot 10/32] RUN apt remove -y cmdtest     && apt remove -y yarn     && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -     && echo 'deb https://dl.yarnpkg.com/debian/ stable main' |tee /etc/apt/sources.list.d/yarn.list     && apt-get update     && apt-get install yarn -y     && yarn install     && curl -fsSL https://deb.nodesource.com/setup_17.x | bash -     && apt-get install -y nodejs     && npm install -g retire:
[...]
43.31 Reading package lists...
44.13 Building dependency tree...
44.30 Reading state information...
44.67 nodejs is already the newest version (18.13.0+dfsg1-1).
44.67 nodejs set to manually installed.
44.67 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
44.67 /bin/sh: 1: npm: not found

The build fails during the last command (npm install -g retire). Installing npm through apt solves the problem.

@codecov-commenter
Copy link

codecov-commenter commented Jul 2, 2023

Codecov Report

Merging #1795 (0435a3c) into master (d8f628b) will not change coverage.
The diff coverage is n/a.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##           master    #1795   +/-   ##
=======================================
  Coverage   46.74%   46.74%           
=======================================
  Files         690      690           
  Lines       45701    45701           
=======================================
  Hits        21365    21365           
  Misses      24336    24336           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

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

Successfully merging this pull request may close these issues.

None yet

2 participants