I have installed Appcelerator Studio on macOS and have created a new iOS module without any changes.
When I try to build from the command line or from the studio I get the following issue:
clang: clang: error: no such file or directory: 'Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/build'error:
no such file or directory: 'Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/build'
make: *** [Release/obj.target/node_ios_device/src/device.o] Error 1
make: *** [Release/obj.target/node_ios_device/src/device.o] Error 1
gypgyp ERR!ERR! build errorbuild error
gypgyp ERR!ERR! stackstack Error: `make` failed with exit code: 2
Error: `make` failed with exit code: 2
The full log is also pasted below:
Darrans-MBP:ios darrankelinske$ appc run -p ios --build-only
Appcelerator Command-Line Interface, version 8.1.0
Copyright (c) 2014-2020, Appcelerator, Inc. All Rights Reserved.
(node:8084) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
2020-09-04T13:23:45.582Z | ERROR | An uncaught exception was thrown!
Rebuild failed:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp#0.10.3
node-pre-gyp info using node#14.9.0 | darwin | x64
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp info check checked for "/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/binding/node-v83-darwin-x64/node_ios_device.node" (not found)
node-pre-gyp http GET https://appc-node-binaries.s3.amazonaws.com/node-ios-device/v1.7.1/node_ios_device-v1.7.1-node-v83-darwin-x64.tar.gz
node-pre-gyp http 403 https://appc-node-binaries.s3.amazonaws.com/node-ios-device/v1.7.1/node_ios_device-v1.7.1-node-v83-darwin-x64.tar.gz
node-pre-gyp WARN Tried to download(403): https://appc-node-binaries.s3.amazonaws.com/node-ios-device/v1.7.1/node_ios_device-v1.7.1-node-v83-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for node-ios-device#1.7.1 and node#14.9.0 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 403 status code downloading tarball https://appc-node-binaries.s3.amazonaws.com/node-ios-device/v1.7.1/node_ios_device-v1.7.1-node-v83-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for node-ios-device#1.7.1 and node#14.9.0 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error Connection closed while downloading tarball file
gypgyp info infoit worked if it ends with ok
it worked if it ends with ok
gypgyp infoinfo usingusing node-gyp#5.1.0
node-gyp#5.1.0
gypgyp infoinfo usingusing node#14.9.0 | darwin | x64
node#14.9.0 | darwin | x64
gypgyp infoinfo okok
gyp info it worked if it ends with ok
gyp info using node-gyp#5.1.0
gyp info using node#14.9.0 | darwin | x64
gyp info it worked if it ends with ok
gyp info using node-gyp#5.1.0
gyp info using node#14.9.0 | darwin | x64
gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
gyp info gyp spawn args [
gyp info spawn args '/Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp/gyp/gyp_main.py',
info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/build/config.gypi',
gyp info spawn argsgyp info spawn args [
gyp info spawn args '/Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/darrankelinske/Library/Caches/node-gyp/14.9.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/darrankelinske/Library/Caches/node-gyp/14.9.0',
gyp info spawn args '-Dnode_gyp_dir=/Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/darrankelinske/Library/Caches/node-gyp/14.9.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
'-I',
gyp info spawn args '/Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/darrankelinske/Library/Caches/node-gyp/14.9.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/darrankelinske/Library/Caches/node-gyp/14.9.0',
gyp info spawn args '-Dnode_gyp_dir=/Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/darrankelinske/Library/Caches/node-gyp/14.9.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp gypinfo ok
info ok
gypgyp info it worked if it ends with ok
info it worked if it ends with ok
gyp info using node-gyp#5.1.0
gyp info gyp usinginfo using node-gyp#5.1.0
node#14.9.0 | darwin | x64
gyp info using node#14.9.0 | darwin | x64
gypgyp info infospawn make
spawn make
gypgyp infoinfo spawn argsspawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
[ 'BUILDTYPE=Release', '-C', 'build' ]
clang: error: no such file or directory: 'Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/build'
clang: error: no such file or directory: 'Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/build'
make: *** [Release/obj.target/node_ios_device/src/device.o] Error 1
make: *** [Release/obj.target/node_ios_device/src/device.o] Error 1
gypgyp ERR! build error
ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gypgyp ERR!ERR! stackstack Error: `make` failed with exit code: 2
at ChildProcess.onExit (/Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp/lib/build.js:194:23)
gypgyp ERR!ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
stack at ChildProcess.onExit (/Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command "/usr/local/bin/node" "/Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/binding/node-v83-darwin-x64/node_ios_device.node" "--module_name=node_ios_device" "--module_path=/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/binding/node-v83-darwin-x64" "--napi_version=6" "--node_abi_napi=napi"
gypgyp ERR!ERR! Systemcwd Darwin 19.6.0
/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device
gyp ERR! gypcommand "/usr/local/bin/node" "/Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/binding/node-v83-darwin-x64/node_ios_device.node" "--module_name=node_ios_device" "--module_path=/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/binding/node-v83-darwin-x64" "--napi_version=6" "--node_abi_napi=napi"
gyp ERR! cwdERR! /Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device
gypnode -v v14.9.0
ERR! node -v v14.9.0
gyp gypERR! ERR!node-gyp -v v5.1.0
node-gyp -v v5.1.0
gyp gypERR! ERR!not ok
not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/binding/node-v83-darwin-x64/node_ios_device.node --module_name=node_ios_device --module_path=/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/binding/node-v83-darwin-x64 --napi_version=6 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/node_modules/node-pre-gyp-init/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:314:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1047:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
node-pre-gyp ERR! System Darwin 19.6.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/node_modules/node-pre-gyp-init/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device
node-pre-gyp ERR! node -v v14.9.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
2020-09-04T13:23:45.583Z | ERROR | Rebuild failed:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp#0.10.3
node-pre-gyp info using node#14.9.0 | darwin | x64
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp info check checked for "/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/binding/node-v83-darwin-x64/node_ios_device.node" (not found)
node-pre-gyp http GET https://appc-node-binaries.s3.amazonaws.com/node-ios-device/v1.7.1/node_ios_device-v1.7.1-node-v83-darwin-x64.tar.gz
node-pre-gyp http 403 https://appc-node-binaries.s3.amazonaws.com/node-ios-device/v1.7.1/node_ios_device-v1.7.1-node-v83-darwin-x64.tar.gz
node-pre-gyp WARN Tried to download(403): https://appc-node-binaries.s3.amazonaws.com/node-ios-device/v1.7.1/node_ios_device-v1.7.1-node-v83-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for node-ios-device#1.7.1 and node#14.9.0 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 403 status code downloading tarball https://appc-node-binaries.s3.amazonaws.com/node-ios-device/v1.7.1/node_ios_device-v1.7.1-node-v83-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for node-ios-device#1.7.1 and node#14.9.0 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error Connection closed while downloading tarball file
gypgyp info infoit worked if it ends with ok
it worked if it ends with ok
gypgyp infoinfo usingusing node-gyp#5.1.0
node-gyp#5.1.0
gypgyp infoinfo usingusing node#14.9.0 | darwin | x64
node#14.9.0 | darwin | x64
gypgyp infoinfo okok
gyp info it worked if it ends with ok
gyp info using node-gyp#5.1.0
gyp info using node#14.9.0 | darwin | x64
gyp info it worked if it ends with ok
gyp info using node-gyp#5.1.0
gyp info using node#14.9.0 | darwin | x64
gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
gyp info gyp spawn args [
gyp info spawn args '/Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp/gyp/gyp_main.py',
info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/build/config.gypi',
gyp info spawn argsgyp info spawn args [
gyp info spawn args '/Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/darrankelinske/Library/Caches/node-gyp/14.9.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/darrankelinske/Library/Caches/node-gyp/14.9.0',
gyp info spawn args '-Dnode_gyp_dir=/Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/darrankelinske/Library/Caches/node-gyp/14.9.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
'-I',
gyp info spawn args '/Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/darrankelinske/Library/Caches/node-gyp/14.9.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/darrankelinske/Library/Caches/node-gyp/14.9.0',
gyp info spawn args '-Dnode_gyp_dir=/Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/darrankelinske/Library/Caches/node-gyp/14.9.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp gypinfo ok
info ok
gypgyp info it worked if it ends with ok
info it worked if it ends with ok
gyp info using node-gyp#5.1.0
gyp info gyp usinginfo using node-gyp#5.1.0
node#14.9.0 | darwin | x64
gyp info using node#14.9.0 | darwin | x64
gypgyp info infospawn make
spawn make
gypgyp infoinfo spawn argsspawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
[ 'BUILDTYPE=Release', '-C', 'build' ]
clang: error: no such file or directory: 'Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/build'
clang: error: no such file or directory: 'Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/build'
make: *** [Release/obj.target/node_ios_device/src/device.o] Error 1
make: *** [Release/obj.target/node_ios_device/src/device.o] Error 1
gypgyp ERR! build error
ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gypgyp ERR!ERR! stackstack Error: `make` failed with exit code: 2
at ChildProcess.onExit (/Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp/lib/build.js:194:23)
gypgyp ERR!ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
stack at ChildProcess.onExit (/Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command "/usr/local/bin/node" "/Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/binding/node-v83-darwin-x64/node_ios_device.node" "--module_name=node_ios_device" "--module_path=/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/binding/node-v83-darwin-x64" "--napi_version=6" "--node_abi_napi=napi"
gypgyp ERR!ERR! Systemcwd Darwin 19.6.0
/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device
gyp ERR! gypcommand "/usr/local/bin/node" "/Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/binding/node-v83-darwin-x64/node_ios_device.node" "--module_name=node_ios_device" "--module_path=/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/binding/node-v83-darwin-x64" "--napi_version=6" "--node_abi_napi=napi"
gyp ERR! cwdERR! /Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device
gypnode -v v14.9.0
ERR! node -v v14.9.0
gyp gypERR! ERR!node-gyp -v v5.1.0
node-gyp -v v5.1.0
gyp gypERR! ERR!not ok
not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /Users/darrankelinske/.appcelerator/install/8.1.0/package/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/binding/node-v83-darwin-x64/node_ios_device.node --module_name=node_ios_device --module_path=/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/binding/node-v83-darwin-x64 --napi_version=6 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/node_modules/node-pre-gyp-init/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:314:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1047:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
node-pre-gyp ERR! System Darwin 19.6.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device/node_modules/node-pre-gyp-init/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/darrankelinske/Library/Application Support/Titanium/mobilesdk/osx/9.1.0.GA/node_modules/node-ios-device
node-pre-gyp ERR! node -v v14.9.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
Darrans-MBP:ios darrankelinske$
For anyone else that hits this idiotic issue, you have to install
Node version: 12.18.3 or probably any 12.x release
You can find it here:
https://nodejs.org/dist/latest-v12.x/
14.x will not work!
Source:
https://wiki.appcelerator.org/display/guides2/Installing+Node
Related
I am trying to install the Node.js package better-sqlite3 on my Strapi App, on my new laptop, a MacBook Pro M2 running on MacOS Ventura 13.2.1. It is not successful because, from what I understood, there are packages missing, and specifically while running the make command during the build process of node-gyp (I don't think it is specific for my laptop, because I have seen other people in the same case on Internet, but without a good solution).
I tried to install Xcode but it didn't change anything.
I tried to install autoconf, automake, libtool, pkg-config with brew (because I have seen it was maybe the equivalent of build-tools of Linux on MacOS), but same result.
I also tried to execute xcode-select --install, but was already installed.
I lastly tried on my former laptop - which is a MacBook Pro Intel, running on MacOS Monterey 12.5, it is working perfectly (which is proving thus that it is an error occurring only on the new version)
Here is the error printed on the terminal :
error /Users/Maxime/Desktop/Projets de code/mh-info.fr/backend/node_modules/better-sqlite3: Command failed.
Exit code: 1
Command: prebuild-install || node-gyp rebuild --release
Arguments:
Directory: /Users/Maxime/Desktop/Projets de code/mh-info.fr/backend/node_modules/better-sqlite3
Output:
prebuild-install warn install No prebuilt binaries found (target=16.15.1 runtime=node arch=arm64 libc= platform=darwin)
gyp info it worked if it ends with ok
gyp info using node-gyp#9.3.1
gyp info using node#16.15.1 | darwin | arm64
gyp info find Python using Python version 3.9.0 found at "/Library/Frameworks/Python.framework/Versions/3.9/bin/python3"
gyp info spawn /Library/Frameworks/Python.framework/Versions/3.9/bin/python3
gyp info spawn args [
gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/Maxime/Desktop/Projets de code/mh-info.fr/backend/node_modules/better-sqlite3/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/Maxime/Library/Caches/node-gyp/16.15.1/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/Maxime/Library/Caches/node-gyp/16.15.1',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/Maxime/Library/Caches/node-gyp/16.15.1/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/Maxime/Desktop/Projets de code/mh-info.fr/backend/node_modules/better-sqlite3',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
TOUCH ba23eeee118cd63e16015df367567cb043fed872.intermediate
ACTION deps_sqlite3_gyp_locate_sqlite3_target_copy_builtin_sqlite3 ba23eeee118cd63e16015df367567cb043fed872.intermediate
/bin/sh: de: command not found
node:internal/fs/utils:345
throw err;
^
Error: ENOENT: no such file or directory, copyfile '/Users/Maxime/Desktop/Projets de code/mh-info.fr/backend/node_modules/better-sqlite3/deps/sqlite3/sqlite3.c' -> '/Users/Maxime/Desktop/Projets de code/mh-info.fr/backend/node_modules/better-sqlite3/build/Release/obj/gen/sqlite3/sqlite3.c'
at Object.copyFileSync (node:fs:2817:3)
at Object.<anonymous> (/Users/Maxime/Desktop/Projets de code/mh-info.fr/backend/node_modules/better-sqlite3/deps/copy.js:25:5)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47 {
errno: -2,
syscall: 'copyfile',
code: 'ENOENT',
path: '/Users/Maxime/Desktop/Projets de code/mh-info.fr/backend/node_modules/better-sqlite3/deps/sqlite3/sqlite3.c',
dest: '/Users/Maxime/Desktop/Projets de code/mh-info.fr/backend/node_modules/better-sqlite3/build/Release/obj/gen/sqlite3/sqlite3.c'
}
make: *** [ba23eeee118cd63e16015df367567cb043fed872.intermediate] Error 1
rm ba23eeee118cd63e16015df367567cb043fed872.intermediate
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
gyp ERR! stack at ChildProcess.emit (node:events:527:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Darwin 22.3.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /Users/Maxime/Desktop/Projets de code/mh-info.fr/backend/node_modules/better-sqlite3
Thank you very much for your help.
Oh, Sorry! it was just a stupid bug : I had a folder with spaces in the name, and this caused to create a false path to /Users/Maxime/Desktop/Projets de code/mh-info.fr/backend/node_modules/better-sqlite3/deps/sqlite3/sqlite3.c
Yarn start:
Failed to compile.
./src/index.scss (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-6-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--5-oneOf-6-3!./node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-6-4!./src/index.scss)
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (93)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.14.1
Yarn:
error E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli 'E:\\Programing\\Web Development\\pair-programming-frontend-react-main\\tasks\\fe-pair-programming\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using node-gyp#3.8.0
gyp info using node#16.15.1 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\which\which.js:80:29)
gyp verb `which` failed at E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\which\which.js:89:16
gyp verb `which` failed at E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\isexe\index.js:42:5
gyp verb `which` failed at E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\which\which.js:80:29)
gyp verb `which` failed at E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\which\which.js:89:16
gyp verb `which` failed at E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\isexe\index.js:42:5
gyp verb `which` failed at E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21) {
gyp verb `which` failed code: 'ENOENT'
gyp verb `which` failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python C:\Users\Aleksandar\AppData\Local\Programs\Python\Python39\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Users\Aleksandar\AppData\Local\Programs\Python\Python39\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (node:child_process:398:12)
gyp ERR! stack at ChildProcess.emit (node:events:527:28)
gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)
gyp ERR! stack at Socket.<anonymous> (node:internal/child_process:451:11)
gyp ERR! stack at Socket.emit (node:events:527:28)
gyp ERR! stack at Pipe.<anonymous> (node:net:709:12)
gyp ERR! System Windows_NT 10.0.22000
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "E:\\Programing\\Web Development\\pair-programming-frontend-react-main\\tasks\\fe-pair-programming\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd E:\Programing\Web Development\pair-programming-frontend-react-main\tasks\fe-pair-programming\node_modules\node-sass
gyp ERR! node -v v16.15.1
From what I see in your error, you need python2/python to be able to install the dependencies. If you do not have python2 or python, try installing it and try again. If you do have python2 or python but the program is not picking it up for whatever reason, you can specify the absolute path to python2's python.exe using yarn config set python /path/to/python2/python.exe or npm config set python /path/to/executable/python2.7. You can find more information here.
I'm trying to install argon2 with yarn add argon2 and get this following error.
What I have done:
Installed v8.4.1 of node-gyp
Installed mapbox/node-pre-gyp v1.0.9
Manually added node-pre-gyp v "0.17.0" into devDeps
However the issue still persists.
Command: node-pre-gyp install --fallback-to-build
Arguments:
Directory:
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp#1.0.9
node-pre-gyp info using node#16.14.2 | darwin | arm64
node-pre-gyp info check checked for "" (not found)
node-pre-gyp http GET https://github.com/ranisalt/node-argon2/releases/download/v0.28.5/argon2-v0.28.5-napi-v3-darwin-arm64-unknown.tar.gz
node-pre-gyp ERR! install response status 404 Not Found on https://github.com/ranisalt/node-argon2/releases/download/v0.28.5/argon2-v0.28.5-napi-v3-darwin-arm64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for argon2#0.28.5 and node#16.14.2 (node-v93 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/ranisalt/node-argon2/releases/download/v0.28.5/argon2-v0.28.5-napi-v3-darwin-arm64-unknown.tar.gz
gyp info it worked if it ends with ok
gyp info using node-gyp#8.4.1
gyp info using node#16.14.2 | darwin | arm64
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp#8.4.1
gyp info using node#16.14.2 | darwin | arm64
gyp info find Python using Python version 3.9.10 found at "/opt/homebrew/opt/python#3.9/bin/python3.9"
gyp info spawn /opt/homebrew/opt/python#3.9/bin/python3.9
make: *** [Release/obj.target/argon2/src/argon2_node.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (node:events:526:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Darwin 20.3.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/" "--module_name=argon2" "--module_path=" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=3" "--node_napi_label=napi-v3"
gyp ERR! cwd
gyp ERR! node -v v16.14.2
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module= --module_name=argon2 --module_path= --napi_version=8 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous>
node-pre-gyp ERR! stack at ChildProcess.emit (node:events:526:28)
node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
node-pre-gyp ERR! System Darwin 20.3.0
node-pre-gyp ERR! command "/usr/local/bin/node" "" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd
node-pre-gyp ERR! node -v v16.14.2
node-pre-gyp ERR! node-pre-gyp -v v1.0.9
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=```
This is resolved by downgrade my node version from 16x to 14.
I use n for node version management https://github.com/tj/n/tree/5b4a526ec71a8b9c4e9af909487565b35e803fe8
i'm working on a project and need to add sass loader to my project dependency which needs node sass in order to work. i installed sass loader with
yarn add sass-loader#6.0.6
and it worked well. But when i tried to install node-sass using this:
yarn add node-sass#4.5.3
warning " > react-modal#2.2.2" has incorrect peer dependency "react-dom#^0.14.0 || ^15.0.0".
[4/4] Building fresh packages...
[-/3] ⢀ waiting...
[-/3] ⠠ waiting...
error C:\Users\IT\Desktop\react-course-projects\indecision-app\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: C:\Users\IT\Desktop\react-course-projects\indecision-app\node_modules\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe C:\Users\IT\Desktop\react-course-projects\indecision-app\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using node-gyp#3.8.0
gyp info using node#10.16.3 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure [],
gyp verb `which` failed code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` failed Error: not found: python
gyp verb `which` failed at getNotFoundError (C:\Users\IT\Desktop\react-course-projects\indecision-app\node_modules\which\which.js:13:12)
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb `which` failed stack:
gyp verb `which` failed 'Error: not found: python\n at getNotFoundError
gyp verb `which` failed code: 'ENOENT' }
gyp verb could not find "python". checking python launcher
gyp verb could not find "python". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
gyp verb check python version `C:\Python27\python.exe -c "import sys; print "2.7.0
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 10.16.3
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ 'C:\\Users\\IT\\Desktop\\react-course-projects\\indecision-app\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args '-Dmodule_root_dir=C:\\Users\\IT\\Desktop\\react-course-projects\\indecision-app\\node_modules\\node-sass',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\Users\\IT\\Desktop\\react-course-projects\\indecision-app\\node_modules\\node-sass\\build',
gyp info spawn args '-Goutput_dir=.' ]
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\Users\IT\.node-gyp\10.16.3
gyp verb found first Solution file build/binding.sln
gyp verb could not find "msbuild.exe" in PATH - finding location in registry
gyp ERR! build error
gyp ERR! stack Error: Command failed: reg query "HKLM\Software\Microsoft\MSBuild\ToolsVersions" /s /reg:32
gyp ERR! stack 'reg' is not recognized as an internal or external command,
gyp ERR! stack operable program or batch file.
gyp ERR! stack
gyp ERR! stack Can't find "msbuild.exe". Do you have Microsoft Visual Studio C++ 2008+ installed?gyp ERR! stack at C:\Users\IT\Desktop\react-course-projects\indecision-app\node_modules\node-gyp\lib\build.js:142:25
"C:\\Users\\IT\\Desktop\\react-course-projects\\indecision-app\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\Users\IT\Desktop\react-course-projects\indecision-app\node_modules\node-sass
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok`enter code here`
i tried removing node modules and installing it back i didn't work
node -v 10.16.0
npm -v 6.9.0
Looks like sass-loader#6.0.6 uses an older node-sass dependency that isn't supported by node-sass. I'd try using sass-loader#latest to see if it's using at least node-sass 4.9 for Node 10 support https://github.com/sass/node-sass#supported-nodejs-versions-vary-by-release-please-consult-the-releases-page-below-is-a-quick-guide-for-minimum-support
How do I fix this long error in Yarn when I try to install the dependencies and modules? I'm not even sure how to interpret it. I think it's giving me 3 different errors, but I don't know which to focus on first. One 'error' (?) says it could not find Python2, but then it did find it later. I do have \python2\python.exe and \python3\python.exe, but Python 3 is first in my path. The last line says something is optional, but it didn't clarify which module it was talking about, when there appears to be several errors. One 'error' refers to Microsoft SDK, but the project was created by someone on a Macintosh! Why would it depend on Windows?
I think I dislike Yarn already. It's excessively verbose, unnecessarily repetitive with 'gyp verb' and way too many backslashes, and completely vague.
C:\Users\Chloe\workspace\catalyst_research>yarn install
yarn install v1.5.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents#1.1.2: The platform "win32" is incompatible with this module.
info "fsevents#1.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
[5/5] Building fresh packages...
[1/2] ? node-zopfli: Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
[2/2] ? node-sass: Build failed with error code: 1
[-/2] ? waiting...
[-/2] ? waiting...
error An unexpected error occurred: "C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass: Command failed.
Exit code: 1
Command: C:\\windows\\system32\\cmd.exe
Arguments: /d /s /c node scripts/build.js
Directory: C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass
Output:
Building: C:\\Program Files\
odejs\
ode.exe C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-gyp\\bin\
ode-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\\\\Program Files\\\
odejs\\\
ode.exe',
gyp verb cli 'C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-gyp\\\\bin\\\
ode-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using node-gyp#3.6.2
gyp info using node#9.10.1 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing \"build\" directory
gyp verb command configure []
gyp verb check python checking for Python executable \"python2\" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\which\\which.js:13:12)
gyp verb `which` failed at F (C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\which\\which.js:68:19)
gyp verb `which` failed at E (C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\which\\which.js:80:29)
gyp verb `which` failed at C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\which\\which.js:89:16
gyp verb `which` failed at C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\isexe\\index.js:42:5
gyp verb `which` failed at C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\isexe\\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:170:21)
gyp verb `which` failed python2 { Error: not found: python2
gyp verb `which` failed at getNotFoundError (C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\which\\which.js:13:12)
gyp verb `which` failed at F (C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\which\\which.js:68:19)
gyp verb `which` failed at E (C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\which\\which.js:80:29)
gyp verb `which` failed at C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\which\\which.js:89:16
gyp verb `which` failed at C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\isexe\\index.js:42:5
gyp verb `which` failed at C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\\isexe\\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:170:21)
gyp verb `which` failed stack: 'Error: not found: python2\
at getNotFoundError (C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\\which\\\\which.js:13:12)\
at F (C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\\which\\\\which.js:68:19)\
at E (C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\\which\\\\which.js:80:29)\
at C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\\which\\\\which.js:89:16\
at C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\\isexe\\\\index.js:42:5\
at C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\\isexe\\\\windows.js:36:5\
at FSReqWrap.oncomplete (fs.js:170:21)',
gyp verb `which` failed code: 'ENOENT' }
gyp verb check python checking for Python executable \"python\" in the PATH
gyp verb `which` succeeded python C:\\Python36\\python.EXE
gyp verb check python version `C:\\Python36\\python.EXE -c \"import platform; print(platform.python_version());\"` returned: \"3.6.5\\r\
\"
gyp verb could not find \"C:\\Python36\\python.EXE\". checking python launcher
gyp verb check python launcher python executable found: \"C:\\\\Python27\\\\python.exe\"
gyp verb check python version `C:\\Python27\\python.exe -c \"import platform; print(platform.python_version());\"` returned: \"2.7.14\\r\
\"
gyp verb get node dir no --target version specified, falling back to host node version: 9.10.1
gyp verb command install [ '9.10.1' ]
gyp verb install input version string \"9.10.1\"
gyp verb install installing version: 9.10.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check \"installVersion\"
gyp verb got \"installVersion\" 9
gyp verb needs \"installVersion\" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 9.10.1
gyp verb build dir attempting to create \"build\" dir: C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass\\build
gyp verb build dir \"build\" dir needed to be created? C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass\\build
gyp verb Not using VS2017: Could not use PowerShell to find VS2017
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass\\build\\config.gypi
gyp verb config.gypi checking for gypi file: C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass\\config.gypi
gyp verb common.gypi checking for gypi file: C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass\\common.gypi
gyp verb gyp gyp format was not specified; forcing \"msvs\"
gyp info spawn C:\\Python27\\python.exe
gyp info spawn args [ 'C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-gyp\\\\gyp\\\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-sass\\\\build\\\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-gyp\\\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\\\Users\\\\Chloe\\\\.node-gyp\\\\9.10.1\\\\include\\\
ode\\\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\\\Users\\\\Chloe\\\\.node-gyp\\\\9.10.1',
gyp info spawn args '-Dnode_gyp_dir=C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\Chloe\\\\.node-gyp\\\\9.10.1\\\\<(target_arch)\\\
ode.lib',
gyp info spawn args '-Dmodule_root_dir=C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-sass',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-sass\\\\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\\Users\\Chloe\\.node-gyp\\9.10.1
gyp verb found first Solution file build/binding.sln
gyp verb could not find \"msbuild.exe\" in PATH - finding location in registry
gyp info spawn C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the \"/m\" switch.
Build started 3/30/2018 10:40:15 PM.
Project \"C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass\\build\\binding.sln\" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration \"Release|x64\".
MSBUILD : error MSB3411: Could not load the Visual C++ component \"VCBuild.exe\". If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server
2008 and .NET Framework 3.5, or 2) install Microsoft Visual Studio 2008. [C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass\\build\\binding.sln]
Done Building Project \"C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass\\build\\binding.sln\" (default targets) -- FAILED.
Build FAILED.
\"C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass\\build\\binding.sln\" (default target) (1) ->
(libsass target) ->
MSBUILD : error MSB3411: Could not load the Visual C++ component \"VCBuild.exe\". If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5, or 2) install Microsoft Visual Studio 2008. [C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass\\build\\binding.sln]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:01.02
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:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-gyp\\lib\\build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:180:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command \"C:\\\\Program Files\\\
odejs\\\
ode.exe\" \"C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-gyp\\\\bin\\\
ode-gyp.js\" \"rebuild\" \"--verbose\" \"--libsass_ext=\" \"--libsass_cflags=\" \"--libsass_ldflags=\" \"--libsass_library=\"
gyp ERR! cwd C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-sass
gyp ERR! node -v v9.10.1
gyp ERR! node-gyp -v v3.6.2
warning Error running install script for optional dependency: "C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-zopfli: Command failed.
Exit code: 1
Command: C:\\windows\\system32\\cmd.exe
Arguments: /d /s /c node-pre-gyp install --fallback-to-build
Directory: C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-zopfli
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp#0.6.36
node-pre-gyp info using node#9.10.1 | win32 | x64
node-pre-gyp info check checked for \"C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-zopfli\\lib\\binding\
ode-v59-win32-x64\\zopfli.node\" (not found)
node-pre-gyp http GET https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v59-win32-x64.tar.gz
node-pre-gyp http 403 https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v59-win32-x64.tar.gz
node-pre-gyp ERR! Tried to download(403): https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v59-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for node-zopfli#2.0.2 and node#9.10.1 (node-v59 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 403 status code downloading tarball https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v59-win32-x64.tar.gz
gyp info it worked if it ends with ok
gyp info using node-gyp#3.6.2
gyp info using node#9.10.1 | win32 | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp#3.6.2
gyp info using node#9.10.1 | win32 | x64
gyp info spawn C:\\Python27\\python.exe
gyp info spawn args [ 'C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-gyp\\\\gyp\\\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-zopfli\\\\build\\\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-gyp\\\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\\\Users\\\\Chloe\\\\.node-gyp\\\\9.10.1\\\\include\\\
ode\\\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\\\Users\\\\Chloe\\\\.node-gyp\\\\9.10.1',
gyp info spawn args '-Dnode_gyp_dir=C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\Chloe\\\\.node-gyp\\\\9.10.1\\\\<(target_arch)\\\
ode.lib',
gyp info spawn args '-Dmodule_root_dir=C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-zopfli',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-zopfli\\\\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp#3.6.2
gyp info using node#9.10.1 | win32 | x64
gyp info spawn C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the \"/m\" switch.
MSBUILD : error MSB3411: Could not load the Visual C++ component \"VCBuild.exe\". If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server
2008 and .NET Framework 3.5, or 2) install Microsoft Visual Studio 2008. [C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-zopfli\\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:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-gyp\\lib\\build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:180:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command \"C:\\\\Program Files\\\
odejs\\\
ode.exe\" \"C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-gyp\\\\bin\\\
ode-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-zopfli\\\\lib\\\\binding\\\
ode-v59-win32-x64\\\\zopfli.node\" \"--module_name=zopfli\" \"--module_path=C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-zopfli\\\\lib\\\\binding\\\
ode-v59-win32-x64\"
gyp ERR! cwd C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-zopfli
gyp ERR! node -v v9.10.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\\Program Files\
odejs\
ode.exe C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-gyp\\bin\
ode-gyp.js build --fallback-to-build --module=C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-zopfli\\lib\\binding\
ode-v59-win32-x64\\zopfli.node --module_name=zopfli --module_path=C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-zopfli\\lib\\binding\
ode-v59-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-pre-gyp\\lib\\util\\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:180:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:936:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
node-pre-gyp ERR! System Windows_NT 6.3.9600
node-pre-gyp ERR! command \"C:\\\\Program Files\\\
odejs\\\
ode.exe\" \"C:\\\\Users\\\\Chloe\\\\workspace\\\\catalyst_research\\\
ode_modules\\\
ode-pre-gyp\\\\bin\\\
ode-pre-gyp\" \"install\" \"--fallback-to-build\"
node-pre-gyp ERR! cwd C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-zopfli
node-pre-gyp ERR! node -v v9.10.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.36
node-pre-gyp ERR! not ok
Failed to execute 'C:\\Program Files\
odejs\
ode.exe C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-gyp\\bin\
ode-gyp.js build --fallback-to-build --module=C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-zopfli\\lib\\binding\
ode-v59-win32-x64\\zopfli.node --module_name=zopfli --module_path=C:\\Users\\Chloe\\workspace\\catalyst_research\
ode_modules\
ode-zopfli\\lib\\binding\
ode-v59-win32-x64' (1)"
info This module is OPTIONAL, you can safely ignore this error
Try following steps.
delete node_modules folder and package-lock.json
running npm install --global windows-build-tools
reinstalling node modules with npm install