Getting a error when installing TRUFFLE on windows - blockchain

I have tried installing truffle on windows powershell with Execution Policy set to "ByPass".
And installing a older version but noting has worked any help is appreciated.
I have node v16.13.0. And have not had any problems before with installing packages.
As well I have the latest version of Virtual studio code.
npm ERR! code 1
npm ERR! path C:\Users\boxin\AppData\Roaming\npm\node_modules\truffle\node_modules\ganache\node_modules\secp256k1
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#8.2.0
npm ERR! gyp info using node#16.13.0 | win32 | x64
npm ERR! gyp info find Python using Python version 3.10.0 found at "C:\Users\boxin\AppData\Local\Programs\Python\Python310\python.exe"
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm ERR! gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
npm ERR! gyp ERR! find VS looking for Visual Studio 2015
npm ERR! gyp ERR! find VS - not found
npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14
npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16
npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:404:5)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:390:28)
npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1064:16)
npm ERR! gyp ERR! System Windows_NT 10.0.22000
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Users\boxin\AppData\Roaming\npm\node_modules\truffle\node_modules\ganache\node_modules\secp256k1
npm ERR! gyp ERR! node -v v16.13.0
npm ERR! gyp ERR! node-gyp -v v8.2.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:

Hello did u try npm install --g --production windows-build-tools
Similar problem -> node-gyp configure got "gyp ERR! find VS"
Lot of ppl had similiar issue and this command helped
If nothing will help i can recommend u https://remix.ethereum.org/ its online IDE that simulate everything. (I have good experience with it on Ether and solidity)

I fix the problem by uninstalling node.js and reinstall in it. And when i installed node, I checked the box that shows up that installs extra build tools.

Related

installing the truffle I am having these errors(already installed latest versions of vs code and node.js)

i have used the "npm install -g truffle" command to install truffle but iam having these errors and having problem with truffle init also
npm ERR! code 1
npm ERR! path C:\Users\LAKSHMAN\localblockvote\node_modules\ganache\node_modules\leveldown
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#8.4.1
npm ERR! gyp info using node#16.14.2 | win32 | x64
npm ERR! gyp info find Python using Python version 3.7.9 found at "C:\Users\LAKSHMAN\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe"
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm ERR! gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
npm ERR! gyp ERR! find VS looking for Visual Studio 2015
npm ERR! gyp ERR! find VS - not found
npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm ERR! gyp ERR! node -v v16.14.2
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:npm ERR! C:\Users\LAKSHMAN\AppData\Local\npm-cache\_logs\2022-04-01T17_32_56_175Z-debug-0.log

Error While Trying To Install Ganache CLI

Im getting these errors when trying to install ganache globally on my windows 10, please help
C:\Program Files\nodejs\node_modules\ganache\node_modules\leveldown
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#7.1.2
npm ERR! gyp info using node#16.14.0 | win32 | x64
npm ERR! gyp info find Python using Python version 3.9.6 found at "C:\Users\lenovo\AppData\Local\Programs\Python\Python39\python.exe"
npm ERR! gyp ERR! UNCAUGHT EXCEPTION
npm ERR! gyp ERR! stack Error: Cannot find module 'psl'
npm ERR! gyp ERR! stack Require stack:
npm ERR! gyp ERR! stack - C:\Users\lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\request\node_modules\tough-cookie\lib\pubsuffix-psl.js
npm ERR! gyp ERR! stack - C:\Users\lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\request\node_modules\tough-cookie\lib\cookie.js
npm ERR! gyp ERR! stack - C:\Users\lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\request\lib\cookies.js
npm ERR! gyp ERR! stack - C:\Users\lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\request\index.js
npm ERR! gyp ERR! stack - C:\Users\lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\install.js
npm ERR! gyp ERR! stack - C:\Users\lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\node-gyp.js
npm ERR! gyp ERR! stack - C:\Users\lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js
npm ERR! gyp ERR! stack at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
npm ERR! gyp ERR! stack at Function.Module._load (node:internal/modules/cjs/loader:778:27)
npm ERR! gyp ERR! stack at Module.require (node:internal/modules/cjs/loader:1005:19)
npm ERR! gyp ERR! stack at require (node:internal/modules/cjs/helpers:102:18)
npm ERR! gyp ERR! stack at Object.<anonymous> (C:\Users\lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\request\node_modules\tough-cookie\lib\pubsuffix-psl.js:32:11)
npm ERR! gyp ERR! stack at Module._compile (node:internal/modules/cjs/loader:1103:14)
npm ERR! gyp ERR! stack at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
npm ERR! gyp ERR! stack at Module.load (node:internal/modules/cjs/loader:981:32)
npm ERR! gyp ERR! stack at Function.Module._load (node:internal/modules/cjs/loader:822:12)
npm ERR! gyp ERR! stack at Module.require (node:internal/modules/cjs/loader:1005:19)
npm ERR! gyp ERR! System Windows_NT 10.0.18363
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\lenovo\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Program Files\nodejs\node_modules\ganache\node_modules\leveldown
npm ERR! gyp ERR! node -v v16.14.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! Node-gyp failed to build your package.
npm ERR! gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\lenovo\AppData\Local\npm-cache\_logs\2022-03-10T10_32_11_739Z-debug.log
Try creating a virtualenv then install ganache cli, the errors seems to be with npm not recognizing ganache to link with the python on your system.
mkdir (project_name)
change into dir
run python3 -m venv <name-of-env>
then, reinstall ganache cli.

Node.JS installing CLD

I'm trying to install the CLD package in my notebook, but keep receiving error in compilation.
Some basic info about my installation:
OS: Win 7 Professional (64bit)
Visual Studio: 2012
Command used: npm install cld --msvs_version=2012
Node.JS version: 5.4.0
Virtual Memory on C drive and E drive are both between 4GB to 8GB.
With reference to MSVS's support site on error C1060, I have tried option 2 and 3 but no luck. Would anyone be able advise on this error? Detailed log is as below.
E:\node_modules\nan\nan.h(70): fatal error C1060: compiler is out of heap space (..\src\cld.cc) [E:\node_modules\cld\build\cld.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd E:\node_modules\cld
gyp ERR! node -v v5.4.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN ENOENT ENOENT: no such file or directory, open 'E:\package.json'
npm WARN EPACKAGEJSON !invalid#1 No description
npm WARN EPACKAGEJSON !invalid#1 No repository field.
npm WARN EPACKAGEJSON !invalid#1 No README data
npm WARN EPACKAGEJSON !invalid#1 No license field.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "cld" "--msvs_version=2012"
npm ERR! node v5.4.0
npm ERR! npm v3.3.12
npm ERR! code ELIFECYCLE
npm ERR! cld#2.4.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cld#2.4.5 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the cld package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls cld
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! E:\npm-debug.log
try to install VS2013 Express Desktop version. Then re-install.
npm install cld --msvs_version=2013
reference: https://github.com/nodejs/node-gyp/blob/master/README.md#installation

error MSB8007: The Platform for project XXX is invalid. Platform='x64'

I have switched from a 32 bits to a 64 bits laptop and I am trying to npm install a node.js project with a dependency to "swisseph": "0.5.6".
Everything was working fine under 32 bits, but now it is not working anymore. I get the following error message:
C:\Users\jverstrynge\Documents\Private\Free Time\ChartVibes>npm install
|
> swisseph#0.5.6 install C:\Users\jverstrynge\Documents\Private\Free Time\ChartVibes\node_modules\swisseph
> node-gyp rebuild
C:\Users\jverstrynge\Documents\Private\Free Time\ChartVibes\node_modules\swisseph>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform.Targets(23,7): error MSB8007: The Platf
orm for project 'swissephz.vcxproj' is invalid. Platform='x64'. You may be seeing this message because you are trying
to build a project without a solution file, and have specified a non-default Platform that doesn't exist for this proje
ct. [C:\Users\jverstrynge\Documents\Private\Free Time\ChartVibes\node_modules\swisseph\build\deps\swisseph\swissephz.vc
xproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\jverstrynge\Documents\Private\Free Time\ChartVibes\node_modules\swisseph
gyp ERR! node -v v4.2.3
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v4.2.3
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! swisseph#0.5.6 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the swisseph#0.5.6 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the swisseph package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls swisseph
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\jverstrynge\Documents\Private\Free Time\ChartVibes\npm-debug.log
I have Microsoft Visual C++ 2010 Express installed. Anybody knows how to solve this?
To build x64 project with Visual C++ 2010 Express download and install the Windows Software Development Kit version 7.1
Visual C++ 2010 Express does not include a 64 bit compiler, but the SDK does. If you still doesn't have x64 compiler for Visual C++ 2010 please read this: http://support.microsoft.com/kb/2519277

Installing node.js package Taunus on WIndows 10

I am trying to install Taunus locally on my Windows 10, following how-to-guide.
I have installed Node.js.
I have installed Python 2.7.
I get some error with strange symbols, something about .NET and C++.
I have installed latest windows updates and also tried to set up C++ distributing package
But at the end I stiil get the error:
vokec#DESKTOP-LQHIC1P MINGW64 /e/dev/getting-started
$ npm install --save taunus taunus-express express
npm WARN package.json getting-started#1.0.0 No description
npm WARN package.json getting-started#1.0.0 No repository field.
npm WARN package.json getting-started#1.0.0 No README data
npm WARN optional dep failed, continuing fsevents#0.3.8
npm WARN deprecated CSSselect#0.4.1: the module is now available as 'css-select'
npm WARN deprecated CSSwhat#0.4.7: the module is now available as 'css-what'
> contextify#0.1.14 install E:\dev\getting-started\node_modules\taunus\node_modules\hget\node_modules\html-md\node_modules\jsdom\node_modules\contextify
> node-gyp rebuild
E:\dev\getting-started\node_modules\taunus\node_modules\hget\node_modules\html-md\node_modules\jsdom\node_modules\contextify>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
▒▒▒▒஥▒▒▒ ▒஥▒⮢ ▒ ▒⮬ ▒襭▒▒ ▒▒ ▒▒▒▒▒▒. ▒⮡▒ ▒▒▒▒▒▒▒ ▒▒ࠫ▒▒▒쭮▒ ▒▒▒▒஥▒▒▒, ▒▒▒▒▒▒▒ ▒▒ࠬ▒▒▒ "/m".
MSBUILD : error MSB3428: ▒▒▒▒㧪▒ ▒▒▒▒▒▒▒▒▒ Visual C++ "VCBuild.exe" ▒▒▒▒▒▒▒▒▒▒. ▒▒▒ᮡ▒ ▒襭▒▒ ▒஡▒▒▒▒: 1) ▒▒⠭▒▒▒▒ .NET Framework 2.0 SDK, 2) ▒▒⠭▒▒▒▒ Microsoft Visual Studio 2005 ▒▒▒ 3) 㪠▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒ ▒▒⥬▒▒▒ ▒▒▒, ▒᫨ ▒▒▒▒▒▒▒▒▒ ▒▒⠭▒▒▒▒▒ ▒ ▒▒㣮▒ ▒▒▒▒. [E:\dev\getting-started\node_modules\taunus\node_modules\hget\node_modules\html-md\node_modules\jsdom\node_modules\contextify\build\binding.sln]
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd E:\dev\getting-started\node_modules\taunus\node_modules\hget\node_modules\html-md\node_modules\jsdom\node_modules\contextify
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "taunus" "taunus-express" "express"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! contextify#0.1.14 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify#0.1.14 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls contextify
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! E:\dev\getting-started\npm-debug.log
Problem solved by installing Microsoft Visual Studio Community Edition with checked C++ language.