Skip to content

Error: ENOENT: no such file or directory, lstat '.clasp.json' #84

@nagababuupputuri-cloud-yum

Description

Hi,
I was trying to deploy the vigenair, but getting an error as clasp.json was not found.

Error:


Creating Apps Script Project...
node:internal/process/promises:394
triggerUncaughtException(err, true /* fromPromise */);
^

[Error: ENOENT: no such file or directory, lstat '.clasp.json'] {
errno: -2,
code: 'ENOENT',
syscall: 'lstat',
path: '.clasp.json'
}

Notes:

  1. Apps scripts Api was enabled in a cloud console
  2. The Installed version of the clasp = 3.1.3

While running on a cloud shell terminal, getting

nagababu_upputuri@cloudshell:~ (crave-ai-nonprod)$ clasp create --type sheets --rootDir ./dist --title vigenair
Active session is invalid. Error code: 4
nagababu_upputuri@cloudshell:~ (crave-ai-nonprod)$ cd vigenair/
nagababu_upputuri@cloudshell:~/vigenair (crave-ai-nonprod)$ ls
common.ts CONTRIBUTING.md dist img index.ts LICENSE node_modules package.json package-lock.json README.md service terraform tsconfig.json ui update.ts
nagababu_upputuri@cloudshell:~/vigenair (crave-ai-nonprod)$ clasp create
User has not enabled the Apps Script API. Enable it by visiting https://script.google.com/home/usersettings then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions