我试图在我的电脑设置firebase工具,但我不断得到错误时,试图这样做。我一直得到所有这些错误时,试图这样做:
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup 'C:\\Users\\jaiza\\AppData\\Roaming\\npm\\node_modules\\firebase-tools\\node_modules\\exegesis',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\jaiza\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\exegesis\node_modules\ajv'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'C:\\Users\\jaiza\\AppData\\Roaming\\npm\\node_modules\\firebase-tools\\node_modules\\exegesis\\node_modules\\ajv'
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code ENOENT
npm ERR! syscall spawn pwsh.exe
npm ERR! path C:\Users\jaiza\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\protobufjs
npm ERR! errno -4058
npm ERR! enoent spawn pwsh.exe ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in: C:\Users\jaiza\AppData\Local\npm-cache\_logs\2023-06-26T18_09_18_300Z-debug-0.log
我已经尝试卸载并重新安装我的node.js,因为我的npm似乎有问题,但没有任何工作。它一直说npm ERR! enoent This is related to npm not being able to find a file
,即使我从node.js网站安装了所有东西。
一个可能相关的旁注,windows11自动安装了大约3个月,已经安装了vs代码和其他程序。
我试图安装firebase开发我自己的网站,但firebase工具是不正确下载
1条答案
按热度按时间wgmfuz8q1#
文件已损坏,在漫游目录中找不到firebase-tools的文件。
按照以下步骤操作:
1.从此位置删除node_modules文件夹
C:\Users\jaiza\AppData\Roaming\npm
1.将node_modules文件夹从此位置
C:\Program Files\nodejs
复制到此位置C:\Users\jaiza\AppData\Roaming\npm
1.现在在node js命令提示符下运行
npm install -g firebase-tools
命令。您的文件将被生成。希望这能解决你的问题。