google / clasp

🔗 Command Line Apps Script Projects
https://developers.google.com/apps-script/guides/clasp
Apache License 2.0
4.59k stars 428 forks source link

complete setup clasp run, but cannot run function #899

Closed trandinhthangv2 closed 2 years ago

trandinhthangv2 commented 2 years ago

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

Expected Behavior

I have a function main() only statement console.log('hello') I config and setup follow docs. After, clasp push and when clasp run, terminal display Select a functionName, I click function main and I wish console.log('hello') in terminal

Actual Behavior

Error: ENOENT: no such file or directory, open '/Users/apple/Documents/Program/IT/GAS/.clasprc.json'

Steps to Reproduce the Problem

  1. Create new standalone project
  2. Follow steps for clasp run setup
  3. Run clasp push and clasp run
  4. Click function

Specifications