web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / ENOENT: no such file o...
Power Apps
Unanswered

ENOENT: no such file or directory

(0) ShareShare
ReportReport
Posted on by 2,295

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.:

  • NumberButtonSelector
  • ControlManifest.Input.xml,
  • NumberButtonSelector/index.ts,
  • NumberButtonSelector/
  • css/NumberButtonSelector.css

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 have the same question (0)
  • Verified answer
    cchannon Profile Picture
    4,702 Moderator on at

    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? 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard