小编Som*_*mto的帖子

firebase部署错误:“eslint不被识别为内部或外部命令、可操作程序或批处理文件”

我想使用 firebase 托管。所以我按照文档中的说明安装 firebase cli...我尝试部署并收到此错误

\n
    \xe2\x86\x90[33m>\xe2\x86\x90[39m firebase deploy\n\n    === Deploying to 'firebase-project-id'...\n\n    i  deploying database, storage, firestore, functions, hosting\n    Running command: npm --prefix "$RESOURCE_DIR" run lint\n\n    > functions@ lint C:\\Users\\somto\\Desktop\\xampp3\\htdocs\\firebaseProjectFolder\\functions\n    > eslint .\n\n    'eslint' is not recognized as an internal or external command,\n    operable program or batch file.\n    npm ERR! code ELIFECYCLE\n    npm ERR! errno 1\n    npm ERR! functions@ lint: `eslint .`\n    npm ERR! Exit status 1\n    npm ERR!\n    npm ERR! Failed at the functions@ lint script.\n    npm ERR! …
Run Code Online (Sandbox Code Playgroud)

windows-7-x64 npm eslint firebase-hosting firebase-cli

6
推荐指数
1
解决办法
2623
查看次数