1

I have a local Jenkins installed (under Windows 10 OS) and have an unexpected behavior.

Suggestions why ?

Step 1 is execuded properly :

cd C:\MYFOLDER

npm run config

But Step 2 fails (ERROR):

cd C:\MYFOLDER

npm i

The console output is:

npm ERR! path C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-bc17270a\package.json

Note: There is a package.json in C:\MYFOLDER with the needed installs, but Jenkins looks for it in a completely another folder.

zaggi
  • 870
  • 1
  • 7
  • 24

1 Answers1

0

Did you look here? How to specify the path of `package.json` to npm? ... specify your package.json. Your node installed in jenkins is going to its default package.json

OK999
  • 1,353
  • 2
  • 19
  • 39