Cloud Functions deploy error during lint on Windows: “enoent ENOENT: no such file or directory”

后端 未结 9 2510
轻奢々
轻奢々 2020-11-27 07:07

Following the firebase function getting started guide and getting a seemingly simple error once trying to deploy with:

firebase deploy --only functions

i  d         


        
9条回答
  •  被撕碎了的回忆
    2020-11-27 08:03

    When running

    firebase init functions
    

    I use this configuration

    ? What language would you like to use to write Cloud Functions? JavaScript
    //TypeScript doesn't work
    ? Do you want to use ESLint to catch probable bugs and enforce style? Yes
    //If you don't you will get a missing file lint
    ? File functions/package.json already exists. Overwrite? Yes
    ? Do you want to install dependencies with npm now? Yes
    //Why not
    

    Then if use windows

    Replace $RESOURCE_DIR by %RESOURCE_DIR% in firebase.json

提交回复
热议问题