clasp
clasp copied to clipboard
clasp push not working as expected. Showing error: ENOENT: no such file or directory, open 'package.json'
(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
You can fix this by creating an empty package.json file ({}) at the root of your directory
This seems like an unnecessary dependency, is there any reason why clasp needs to use the package.json?
Can someone please describe that requirement in the documentation? How deal with that properly?
Any updates?
See also https://github.com/google/clasp/issues/856#issuecomment-1166703219
Cannot believe this is still open. I guess things aren't very active here?