Skip to content

Error occurs on first run if NPM is not allready installed #10

@Marc-Gee

Description

@Marc-Gee

Trying docker for windows for my 1st time!
Windows 11 and VS code both current versions.

Running the docker build -t welcome-to-docker . command returns an error " ERROR: failed to solve: process "/bin/sh -c npm install....."
This error persisted because my WSL2 machine , or my host machine, (I am not sure which ) did not have NPM installed already.
ie trying

This was solved via running 'sudo apt install npm' in the WSL2 Ubuntu VM, and then running the welcome to docker build script again.
The container then built successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions