📌  相关文章
📜  npm 错误!代码 ELIFECYCLE npm 错误! errno 2 npm 错误! functions@ lint: `tslint --project tsconfig.json` - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:31.002000             🧑  作者: Mango

代码示例1
Change the "firebase.json" file's "predeploy" section from this: 

 "functions": {
    "predeploy": [
      "npm --prefix \"$RESOURCE_DIR\" run lint",
      "npm --prefix \"$RESOURCE_DIR\" run build"
    ]
  },
  
To this:

 "functions": {
    "predeploy": [
      "npm --prefix \"%RESOURCE_DIR%\" run lint",
      "npm --prefix \"%RESOURCE_DIR%\" run build"
    ]
  }