Hello Sara
Thanks for your answer, I’m following Part 4 of the book and I’ve already installed in my PC
• Visual Studio Code
• Node.JS LTS version
• Node.js Extension Pack (VS Code)
Problem arises when I open New Terminal, type cd \ and then npm -g install firebase-tool
The Firebase Tools aren’t installed as you can see in the previous message.
Thanks for any help!
Have you created a firebase project before?
I see that you already asked some questions about Firebase before.
If you’ve already installed firebase tools you don’t need to install them again.
Hello Sara
Thanks for your message, here follow some comments:
1 – This is my first Project
2 – At the time I’ve asked some questions about Firebase I stopped working at the end of Part #3, since my main interest was the development of an associated ‘customized” hardware, which is running well since that time, perfectly validating Firebase’s RTDB operation and given instructions.
3 – Therefore, answering your question, this the first installation of said softwares.
4 – In the meantime I already uninstalled the softwares and carefully reinstalled them once again.
5 – Now I get:
Windows PowerShell
Copyright (C) Microsoft Corporation. Todos os direitos
reservados.
Experimente a nova plataforma cruzada PowerShell https://aka.ms/pscore6
PS C:\Users\Pedro> cd \
PS C:\> npm -g install firebase-tools
npm WARN deprecated har-validator@5.1.3: this library is no longer supported
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated uuid@3.4.0: 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 request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
39 packages are looking for funding
run `npm fund` for details
5 moderate severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix –force
Run `npm audit` for details.
PS C:\> npm audit fix –force
npm WARN using –force Recommended protections disablednpm ERR! code ENOLOCK
npm ERR! audit This command requires an existing lockfile.
npm ERR! audit Try creating one first with: npm i –package-lock-only
npm ERR! audit Original error: loadVirtual requires existing shrinkwrap file
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Pedro\AppData\Local\npm-cache\_logs\2022-10-05T12_59_31_218Z-debug-0.log
PS C:\> firebase –version
firebase : O arquivo
C:\Users\Pedro\AppData\Roaming\npm\firebase.ps1 não
pode ser carregado porque a execução de scripts foi
desabilitada neste sistema. Para obter mais
informações, consulte about_Execution_Policies em
https://go.microsoft.com/fwlink/?LinkID=135170.
No linha:1 caractere:1
+ firebase –version
+ ~~~~~~~~
+ CategoryInfo : ErrodeSegurança: (:) []
, PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
PS C:\>
What should I do?
Thx
Ignore the warning and continue as mentioned on page 119.
See if you can proceed with the instructions.
https://stackoverflow.com/questions/72163587/npm-gives-depreciated-errors-when-trying-to-install-firebase-tools-for-flutter