Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clasp push not working as expected. Showing error: ENOENT: no such file or directory, open 'package.json' #875

Open
swopno1 opened this issue Sep 22, 2021 · 7 comments

Comments

@swopno1
Copy link

swopno1 commented Sep 22, 2021

(Note: Non-breaking issues are likely not to be prioritized. Please consider a PR in addition to your issue)

Expected Behavior

Push my clasp local file to Apps Script

Actual Behavior

Show this error: ENOENT: no such file or directory, open 'package.json'

Steps to Reproduce the Problem

Specifications

  • Node version (node -v): v14.17.6
  • Version (clasp -v): 2.4.1
  • OS (Mac/Linux/Windows): Windows
@joshsny
Copy link

joshsny commented Oct 15, 2021

You can fix this by creating an empty package.json file ({}) at the root of your directory

@JJPell
Copy link

JJPell commented Nov 9, 2021

This seems like an unnecessary dependency, is there any reason why clasp needs to use the package.json?

@Maxsh
Copy link

Maxsh commented Dec 23, 2021

Can someone please describe that requirement in the documentation? How deal with that properly?

@your-diary
Copy link

Any updates?

@lekseys
Copy link

lekseys commented Jun 27, 2022

See also #856 (comment)

anantakrishna added a commit to PureBhaktiArchive/audioseva that referenced this issue Jul 6, 2023
@iamsanteri
Copy link

Cannot believe this is still open. I guess things aren't very active here?

@burkybang
Copy link
Contributor

I think this happens when clasp tries to show an error message. For some reason, it requires the package.json file in order to display an error message.

I went into more detail here: #856 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants