I have installed the latest nvm, node but whenever I am trying to install Windows build tool getting an error also note I am behind the firewall.
I downloaded build tools resources from downloading node externally which got me the latest python and stuff as it was recommended way in GitHub of windows built tool but then tried to download the latest fdk using the command.
npm install https://cdn.freshdev.io/fdk/latest.tgz -g
Getting Error:
Need to fix it asap in order to migrate the code base to platform 2.3.
I think I’m having similar issues when installing it through YARN:
error https://cdn.freshdev.io/fdk/latest.tgz: Integrity check failed for "fdk" (computed integrity doesn't match our records, got "sha512-Q7cKHAbS1CmCzY7JCD2zfHMx2dg6CKKyeHPaisEsPfVl5mHHrM0+hZRTMnhsJ3nNbTUUyOxpo1+9lDsD1QNeeQ== sha1-XoMGR11ATnLMamdiYf2gG8+oYrk=") info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command
Hey I got one way around and its working for me:
- Open Powershell as administrator then Run
Get-ExecutionPolicy
- If it returns
Restricted
, then run Set-ExecutionPolicy AllSigned
or Set-ExecutionPolicy Bypass -Scope Process
.
- Run
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
- Check if choco exits by typing choco
- nstall NVM via chocolatey
`# install nvm
choco install nvm
verify version
nvm --version`
- Install Node
`# install node 18 via nvm
nvm install 18
verify node version
node --version
create alias against node
nvm alias default 18`
- Install build tools
choco install python visualstudio2017-workload-vctools -y npm config set msvs_version 2017
- Install fdk 9
npm install https://cdn.freshdev.io/fdk/latest.tgz -g
- type fdk run and if got error saying:
`fdk : File C:\Program Files\nodejs\fdk.ps1 cannot be loaded. The file C:\Program Files\nodejs\fdk.ps1 is not digitally
signed. You cannot run this script on the current system. For more information about running scripts and setting
execution policy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
- Run
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
- make sure type y when prompted for then try running fdk
You can refer this if it helps.