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

  • davidmarkclements
    davidmarkclements 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:

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

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

Categories

Upcoming Training