The error
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawn npm --prefix "D:\\Project\\Web\\functions" run lint',
path: 'npm --prefix "D:\\Project\\Web\\functions" run lint',
spawnargs: []
}
Error: functions predeploy error: Command terminated with non-zero exit code1
firebase.json
{
"firestore": {
"rules": "firestore.rules",
"indexes": "firestore.indexes.json"
},
"functions": {
"predeploy": [
"npm --prefix \"%RESOURCE_DIR%\" run lint"
]
}
}
I got the above error when I trying run the firebase deploy
command, I searched the whole internet and I find related issues but not helpful so what is the problem?
I'm using Windows 10
Edit