小编Rob*_*and的帖子

云功能在Windows上的lint期间部署错误:"enoent ENOENT:没有这样的文件或目录"

firebase函数入门之后,一旦尝试部署,就会引导并获得看似简单的错误:

firebase deploy --only functions

i  deploying functions
Running command: npm --prefix $RESOURCE_DIR run lint
npm ERR! path C:\Users\Beat\leginformant\$RESOURCE_DIR\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 
'C:\Users\Beat\leginformant\$RESOURCE_DIR\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
Run Code Online (Sandbox Code Playgroud)

package.json文件确实存在,就像我的project/functions/package.json中的教程所示.尝试更改或打印出RESOURCE_DIR env但没有成功.假设它将限定在NPM shell环境中.

npm版本:5.6.0

节点版本:8.9.0

windows firebase google-cloud-functions firebase-cli

17
推荐指数
1
解决办法
4521
查看次数