When trying to build the PCF control as per https://github.com/365lyf/PCFControls/tree/master/NumberButtonSelector
I have download the files contained within the control.:
Then opened the directory in VSCODE, and executed
npm run build
I get the error:
C:\Users\nuno_\Documents\NumberButtonSelector>npm run build
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\nuno_\Documents\NumberButtonSelector/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\nuno_\Documents\NumberButtonSelector\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\nuno_\AppData\Local\npm-cache\_logs\2022-11-24T16_19_37_674Z-debug-0.log
And in the log file:
verbose stack Error: ENOENT: no such file or directory, open 'C:\Users\nuno_\Documents\NumberButtonSelector\package.json'
So, it seems package.json is missing.
Can anyone help?
I think based on your other thread you're already past this, right? But I assume you resolved it by creating a new directory and executing
pac pcf init
correct?
WarrenBelz
75
Most Valuable Professional
mmbr1606
51
Super User 2025 Season 1
MS.Ragavendar
36