SP-CLI Pack zip error

I am running on windows so have broken down the script commands into windows format and run them individually for now.

For Packing zip after running clean and prebuild command when I run

npx ncc build .\src\index.ts -o .\dist -m -C I get the following error

could not determine executable to run

I am unable to resolve it or go past this point. Pls let me know what can be done here?

I am able to run that command in both powershell and windows cmd. Can you give me more details on the issue you are running into when trying to run? Simply running the command npm run build should work on windows.

Hi Phillip,

I am running in powershell, I was able to go into the logs of that error command and heres a section of it


36 http fetch GET 200 https://registry.npmjs.org/ncc 70294ms (cache stale)
37 timing command:exec Completed in 70876ms
38 verbose stack Error: could not determine executable to run
38 verbose stack     at getBinFromManifest (C:\Users\samirakhodami\AppData\Roaming\npm\node_modules\npm\node_modules\libnpmexec\lib\get-bin-from-manifest.js:17:23)
38 verbose stack     at exec (C:\Users\samirakhodami\AppData\Roaming\npm\node_modules\npm\node_modules\libnpmexec\lib\index.js:173:15)
38 verbose stack     at async module.exports (C:\Users\samirakhodami\AppData\Roaming\npm\node_modules\npm\lib\cli.js:78:5)
39 verbose pkgid [email protected]
40 verbose cwd C:\support\saas-connector-project
41 verbose Windows_NT 10.0.19044
42 verbose node v18.9.0
43 verbose npm  v8.19.2
44 error could not determine executable to run
45 verbose exit 1
46 timing npm Completed in 71203ms
47 verbose code 1
48 error A complete log of this run can be found in:

Is this helpful?