Yes, I have the latest version (Python 3) installed which npm couldn’t locate. As a response to that, I downloaded Python 2 and it finally recognised it. Then it asked me about visual studio with the C++ extensions and I did download the 2017 version with the windows package.
I also had visual studio installed before re downloading it with the packages… I don’t understand why it’s so hard for it to recognize components.
After completing the above steps, this is what I currently get by typing the command “npm install bcoin”:
PS C:\> cd .\Users\Utente\multisigproject
PS C:\Users\Utente\multisigproject> npm install bcoin
> [email protected] install C:\Users\Utente\multisigproject\node_modules\mrmr
> node-gyp rebuild || echo 'Build failed.'
C:\Users\Utente\multisigproject\node_modules\mrmr>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node
_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node
"C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
File "<string>", line 1
'from
^
SyntaxError: EOL while scanning string literal
gyp: Call to 'python -c 'from __future__ import print_function; import sys; print(sys.byteorder)'' returned exit status
1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configur
e.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272: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 C:\Users\Utente\multisigproject\node_modules\mrmr
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
'Build failed.'
> [email protected] install C:\Users\Utente\multisigproject\node_modules\secp256k1
> npm run rebuild || echo "Secp256k1 bindings compilation fail. Pure JS implementation will be used."
> [email protected] rebuild C:\Users\Utente\multisigproject\node_modules\secp256k1
> node-gyp rebuild
C:\Users\Utente\multisigproject\node_modules\secp256k1>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs
\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else
(node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Compilazione dei progetti nella soluzione uno alla volta. Per abilitare la compilazione parallela, aggiungere l'opzione
"/m".
addon.cc
privatekey.cc```
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\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:1
94:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272: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 C:\Users\Utente\multisigproject\node_modules\secp256k1
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] rebuild: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] rebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Utente\AppData\Roaming\npm-cache\_logs\2019-11-28T15_29_21_075Z-debug.log
"Secp256k1 bindings compilation fail. Pure JS implementation will be used."
> [email protected] install C:\Users\Utente\multisigproject\node_modules\leveldown
> prebuild-install || node-gyp rebuild
prebuild-install WARN install No prebuilt binaries found (target=12.13.0 runtime=node arch=ia32 platform=win32)
C:\Users\Utente\multisigproject\node_modules\leveldown>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs
\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else
(node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Compilazione dei progetti nella soluzione uno alla volta. Per abilitare la compilazione parallela, aggiungere l'opzione
"/m".
builder.cc
db_impl.cc
db_iter.cc
filename.cc
dbformat.cc
log_reader.cc
log_writer.cc
memtable.cc
repair.cc
table_cache.cc
version_edit.cc
version_set.cc
write_batch.cc
memenv.cc
port_posix_sse.cc
block.cc
block_builder.cc
filter_block.cc
format.cc
iterator.cc
merger.cc
table.cc
table_builder.cc
two_level_iterator.cc
arena.cc
bloom.cc
cache.cc
coding.cc
comparator.cc
crc32c.cc
env.cc
filter_policy.cc
hash.cc
logging.cc
options.cc
status.cc
port_uv.cc
env_win.cc
win_logger.cc
win_delay_load_hook.cc
leveldb.vcxproj -> C:\Users\Utente\multisigproject\node_modules\leveldown\build\Release\\leveldb.lib
snappy-sinksource.cc
snappy-stubs-internal.cc
snappy.cc
win_delay_load_hook.cc
snappy.vcxproj -> C:\Users\Utente\multisigproject\node_modules\leveldown\build\Release\\snappy.lib
batch.cc
batch_async.cc
c:\users\utente\appdata\local\node-gyp\cache\12.13.0\include\node\v8.h(3402): note: vedere la dichiarazione di 'v8::O
bject::Set' (compilazione del file di origine ..\src\leveldown_async.cc)
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\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:1
94:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272: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 C:\Users\Utente\multisigproject\node_modules\leveldown
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Utente\multisigproject\package.json'
npm WARN multisigproject No description
npm WARN multisigproject No repository field.
npm WARN multisigproject No README data
npm WARN multisigproject No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Utente\AppData\Roaming\npm-cache\_logs\2019-11-28T15_32_28_676Z-debug.log
PS C:\Users\Utente\multisigproject>
and to be honest, i had to cut much of the error code it was giving me because it couldn’t even fit the max words allowed here…