这是我尝试运行npm run-script lint时的屏幕截图
我尝试了一些修复程序,例如在firebase.json中将目录从Directory%更改为Directory ..,但是没有一个对我有用,所以我要寻求个人解决方案/还在下面附加了日志文件文本。
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run-script',
1 verbose cli 'lint' ]
2 info using npm@6.7.0
3 info using node@v11.10.1
4 verbose stack Error: ENOENT: no such file or directory, open 'C:\Windows\System32\functions-companeon\package.json'
5 verbose cwd C:\Windows\System32\functions-companeon
6 verbose Windows_NT 6.1.7601
7 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run-script" "lint"
8 verbose node v11.10.1
9 verbose npm v6.7.0
10 error path C:\Windows\System32\functions-companeon\package.json
11 error code ENOENT
12 error errno -4058
13 error syscall open
14 error enoent ENOENT: no such file or directory, open 'C:\Windows\System32\functions-companeon\package.json'
15 error enoent This is related to npm not being able to find a file.
16 verbose exit [ -4058, true ]