Welcome to the Linux Foundation Forum!

ch-3 : labs-1

I have a problem !

Comments

  • hi @ahmedzeddini

    if you change line 29 where it says spawn('npm', ... to spawn('npm.cmd',... that should solve it

  • Posts: 270
    edited January 2022

    @narmer did you download the latest labs? The latest labs should not have this issue. line 27-29 of ch-3/labs-1/validate.js should be:

    1. const server = spawn(process.platform === 'win32' ? 'npm.cmd' : 'npm', ['start'], {
    2. env: { ...process.env, NODE_OPTIONS: `-r ${injectPath}` }
    3. })

    If it's not then you'll need to download the latest labs zip

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training