jenkins-library icon indicating copy to clipboard operation
jenkins-library copied to clipboard

npmExecuteScripts fails with ENOWORKSPACES

Open navinkrishnan opened this issue 9 months ago • 2 comments

Hi, In the project package.json, I have configured workspaces

 "workspaces": [
    "app/*"
  ]

In the pipeline config, I have the following for npmExecuteScripts

  npmExecuteScripts: 
    install: true
    publish: false
    runScripts: 
      - "production-build"

This results in the error:

info  npmExecuteScripts - Discovered package.json file package.json
12:14:56  info  npmExecuteScripts - running command: npm config get registry
12:14:56  error npmExecuteScripts - npm ERR! code ENOWORKSPACES
12:14:56  error npmExecuteScripts - npm ERR! This command does not support workspaces.
12:14:56  info  npmExecuteScripts - 
12:14:56  error npmExecuteScripts - npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-05-15T06_44_55_325Z-debug-0.log

navinkrishnan avatar May 15 '24 07:05 navinkrishnan