aside icon indicating copy to clipboard operation
aside copied to clipboard

Running `npx @google/aside init` ends with an error about missing dist/.clasp.json

Open evil-shrike opened this issue 2 years ago • 1 comments

node: v20.9.0
npm: 10.1.0

/Users/segy/work/xxx/src$ npx @google/aside init
Need to install the following packages:
@google/[email protected]
Ok to proceed? (y)
npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
✔ Project Title: … XXX
✔ Generate package.json? … No / Yes
✔ Adding scripts...
✔ Saving package.json...
✔ Installing dependencies...
✔ Installing src template...
✔ Installing test template...
✔ Script ID (optional): …
✔ Script ID for production environment (optional): …
✔ Creating XXX...

-> Google Sheets Link: Not found
-> Apps Script Link: Not found

Error: ENOENT: no such file or directory, lstat 'dist/.clasp.json'

evil-shrike avatar Jan 12 '24 09:01 evil-shrike

@evil-shrike You must activate the Google App Script API from the following page. https://script.google.com/home/usersettings

After activation, run npx @google/aside init again.

MURAMASA2470 avatar Jan 23 '24 17:01 MURAMASA2470

node v20.17.0 npm 10.9.0

After cloning an aside project from github, Even though I activated Google App Script API, I received same error.

$ npx @google/aside init √ Project Title: ... hoge √ Create an Angular UI? ... No / Yes ✔ Adding scripts... ✔ Saving package.json... ✔ Installing dependencies... npm error could not determine executable to run npm error A complete log of this run can be found in: C:\Users\xxx\AppData\Local\npm-cache_logs\2024-10-26T02_15_48_037Z-debug-0.log √ Script ID (optional): ... √ Script ID for production environment (optional): ... ✔ Creating school-test...

-> Google Sheets Link: Not found -> Apps Script Link: Not found

Error: ENOENT: no such file or directory, lstat 'C:\Users\xxx\GAS\hoge\dist.clasp.json'

sensei-asia avatar Oct 26 '24 02:10 sensei-asia

Thanks for your patience on this...

We just deployed v1.4.5 earlier, which should fix these issues which originated from breaking changes in a new clasp version.

Could you check and see if the new version fixes the problems you encountered?

victor-paunescu avatar Apr 15 '25 12:04 victor-paunescu