"ffi-napi#npm:4.0.3 couldn't be built successfully (exit code 1)" - yarnpkg

I was trying to install a project (https://github.com/junta/tradingview-alert-connector.git). When I yarn it, it failed with errors. Then, I try to rerun it and the result is the same.
I’m using node.js v18.12.1. and yarn 3.3.0
➤ YN0000: ┌ Resolution step
➤ YN0002: │ tradingview-alert-connector#workspace:. doesn't provide big.js (pb6e7e), requested by #perp/sdk-curie
➤ YN0060: │ tradingview-alert-connector#workspace:. provides ethers (p9fa99) with version 5.7.2, which doesn't satisfy what #perp/sdk-curie requests
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 0s 730ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 1s 792ms
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0007: │ ffi-napi#npm:4.0.3 must be built because it never has been before or the last one failed
➤ YN0009: │ ffi-napi#npm:4.0.3 couldn't be built successfully (exit code 1, logs can be found here: C:\Users\User\AppData\Local\Temp\xfs-9d9591b9\build.log)
➤ YN0000: └ Completed in 13s 594ms
➤ YN0000: Failed with errors in 16s 363ms
Here is the build log for C:\Users\User\AppData\Local\Temp\xfs-9d9591b9\build.log
# This file contains the result of Yarn building a package (ffi-napi#npm:4.0.3)
# Script name: install
gyp info it worked if it ends with ok
gyp info using node-gyp#9.3.0
gyp info using node#18.12.1 | win32 | x64
gyp info find Python using Python version 3.10.9 found at "C:\Users\User\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe"
gyp info find VS using VS2022 (17.4.33205.214) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Users\User\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe
gyp info spawn args [
gyp info spawn args 'C:\\Users\\User\\Downloads\\tradingview-alert-connector-main\\tradingview-alert-connector-main\\.yarn\\unplugged\\node-gyp-npm-9.3.0-21c41a4dfd\\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 '-I',
gyp info spawn args 'C:\\Users\\User\\Downloads\\tradingview-alert-connector-main\\tradingview-alert-connector-main\\.yarn\\unplugged\\ffi-napi-npm-4.0.3-fb70453a70\\node_modules\\ffi-napi\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\User\\Downloads\\tradingview-alert-connector-main\\tradingview-alert-connector-main\\.yarn\\unplugged\\node-gyp-npm-9.3.0-21c41a4dfd\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\User\\AppData\\Local\\node-gyp\\Cache\\18.12.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=C:\\Users\\User\\AppData\\Local\\node-gyp\\Cache\\18.12.1',
gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\User\\Downloads\\tradingview-alert-connector-main\\tradingview-alert-connector-main\\.yarn\\unplugged\\node-gyp-npm-9.3.0-21c41a4dfd\\node_modules\\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\User\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\18.12.1\\\\<(target_arch)\\\\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\\Users\\User\\Downloads\\tradingview-alert-connector-main\\tradingview-alert-connector-main\\.yarn\\unplugged\\ffi-napi-npm-4.0.3-fb70453a70\\node_modules\\ffi-napi',
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\\User\\Downloads\\tradingview-alert-connector-main\\tradingview-alert-connector-main\\.yarn\\unplugged\\ffi-napi-npm-4.0.3-fb70453a70\\node_modules\\ffi-napi\\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
Traceback (most recent call last):
File "C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\node-gyp-npm-9.3.0-21c41a4dfd\node_modules\node-gyp\gyp\gyp_main.py", line 45, in <module>
sys.exit(gyp.script_main())
File "C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\node-gyp-npm-9.3.0-21c41a4dfd\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 686, in script_main
return main(sys.argv[1:])
File "C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\node-gyp-npm-9.3.0-21c41a4dfd\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 678, in main
return gyp_main(args)
File "C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\node-gyp-npm-9.3.0-21c41a4dfd\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 663, in gyp_main
generator.GenerateOutput(flat_list, targets, data, params)
File "C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\node-gyp-npm-9.3.0-21c41a4dfd\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 2143, in GenerateOutput
_GenerateProject(project, options, msvs_version, generator_flags, spec)
File "C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\node-gyp-npm-9.3.0-21c41a4dfd\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 1030, in _GenerateProject
return _GenerateMSBuildProject(project, options, version, generator_flags, spec)
File "C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\node-gyp-npm-9.3.0-21c41a4dfd\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 3735, in _GenerateMSBuildProject
_GenerateMSBuildFiltersFile(
File "C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\node-gyp-npm-9.3.0-21c41a4dfd\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 2222, in _GenerateMSBuildFiltersFile
easy_xml.WriteXmlIfChanged(content, filters_path, pretty=True, win32=True)
File "C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\node-gyp-npm-9.3.0-21c41a4dfd\node_modules\node-gyp\gyp\pylib\gyp\easy_xml.py", line 137, in WriteXmlIfChanged
with open(path, "wb") as file:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\User\\Downloads\\tradingview-alert-connector-main\\tradingview-alert-connector-main\\.yarn\\unplugged\\ffi-napi-npm-4.0.3-fb70453a70\\node_modules\\ffi-napi\\build\\..\\..\\..\\node-addon-api-npm-3.2.1-a29528f81d\\node_modules\\node-addon-api\\nothing.vcxproj.filters'
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\node-gyp-npm-9.3.0-21c41a4dfd\node_modules\node-gyp\lib\configure.js:325:16)
gyp ERR! stack at ChildProcess.emit (node:events:513:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Windows_NT 10.0.19044
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\User\\Downloads\\tradingview-alert-connector-main\\tradingview-alert-connector-main\\.yarn\\unplugged\\node-gyp-npm-9.3.0-21c41a4dfd\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\User\Downloads\tradingview-alert-connector-main\tradingview-alert-connector-main\.yarn\unplugged\ffi-napi-npm-4.0.3-fb70453a70\node_modules\ffi-napi
gyp ERR! node -v v18.12.1
gyp ERR! node-gyp -v v9.3.0
gyp ERR! not ok
I would really appreciate it if anyone could give me some advice.

Related

Google Appengine Fail - npm error with make and INVALID_ARGUMENT error

I'm getting a weird error when I try to deploy google appengine. I've tried removing the yarn files, the package and package lock files, rerunning npm install, running npm cache verify, env V=1 npm install fsevents etc and I'm hopelessly stumped. Would love another eye to look at this, thanks!
There seems to be a few different errors, relating to 'make' and 'fsevents', so i guess that's a pattern here. There's also an issue with an instance class, I dont know what that means though:
:
appengine % ./gradlew :...:appengineDeploy -PgaeAppId=[...] -PgaeVersion=[...] --stacktrace
> Configure project :datastore-scrubber
Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'datastore-scrubber/build.gradle'
Build was configured to prefer settings repositories over project repositories but repository 'maven2' was added by build file 'datastore-scrubber/build.gradle'
> Configure project :[...]
tesType is:normal
tesType is:normal
> Configure project :[...]
tesType is:normal
tesType is:normal
> Configure project :...:appengine
--------------
Preparing [...]
Project: [...]
Module: default
Version: [...]
Instance: 0
BuildId: 327f45c7-pd
ClientType: adsApi
--------------
> Task :[...]:npmInstall
> fsevents#1.2.13 install /Users/.../src/main/webapp-src/community/node_modules/chokidar/node_modules/fsevents
> node install.js
2022-07-13 17:22:50.815 xcodebuild[69427:3693627] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-07-13 17:22:50.817 xcodebuild[69427:3693627] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
SOLINK_MODULE(target) Release/.node
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/.node] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/.../appengine/.../src/main/webapp-src/community/.gradle/npm/npm-v5.10.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
gyp ERR! System Darwin 21.5.0
gyp ERR! command "/Users/.../appengine/.../src/main/webapp-src/community/.gradle/nodejs/node-v6.17.1-darwin-x64/bin/node" "/Users/.../appengine/.../src/main/webapp-src/community/.gradle/npm/npm-v5.10.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/.../appengine/.../src/main/webapp-src/community/node_modules/chokidar/node_modules/fsevents
gyp ERR! node -v v6.17.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
> fsevents#1.2.13 install /Users/.../appengine/.../src/main/webapp-src/community/node_modules/gulp-nodemon/node_modules/glob-watcher/node_modules/fsevents
> node install.js
2022-07-13 17:22:57.221 xcodebuild[69462:3693914] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-07-13 17:22:57.222 xcodebuild[69462:3693914] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
SOLINK_MODULE(target) Release/.node
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/.node] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/.../appengine/.../src/main/webapp-src/community/.gradle/npm/npm-v5.10.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
gyp ERR! System Darwin 21.5.0
gyp ERR! command "/Users/.../appengine/.../src/main/webapp-src/community/.gradle/nodejs/node-v6.17.1-darwin-x64/bin/node" "/Users/.../appengine/.../src/main/webapp-src/community/.gradle/npm/npm-v5.10.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/.../appengine/.../src/main/webapp-src/community/node_modules/gulp-nodemon/node_modules/glob-watcher/node_modules/fsevents
gyp ERR! node -v v6.17.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
> fsevents#1.2.13 install /Users/.../appengine/.../src/main/webapp-src/community/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents
> node install.js
2022-07-13 17:23:02.257 xcodebuild[69495:3694117] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-07-13 17:23:02.259 xcodebuild[69495:3694117] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
SOLINK_MODULE(target) Release/.node
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/.node] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/.../appengine/.../src/main/webapp-src/community/.gradle/npm/npm-v5.10.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
gyp ERR! System Darwin 21.5.0
gyp ERR! command "/Users/.../appengine/.../src/main/webapp-src/community/.gradle/nodejs/node-v6.17.1-darwin-x64/bin/node" "/Users/.../appengine/.../src/main/webapp-src/community/.gradle/npm/npm-v5.10.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/.../appengine/.../src/main/webapp-src/community/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents
gyp ERR! node -v v6.17.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
> base62#1.2.7 postinstall /Users/.../appengine/.../src/main/webapp-src/community/node_modules/base62
> node scripts/install-stats.js || exit 0
> es5-ext#0.10.61 postinstall /Users/.../appengine/.../src/main/webapp-src/community/node_modules/es5-ext
> node -e "try{require('./_postinstall')}catch(e){}" || exit 0
> nodemon#2.0.19 postinstall /Users/.../appengine/.../src/main/webapp-src/community/node_modules/gulp-nodemon/node_modules/nodemon
> node bin/postinstall || exit 0
> history#1.17.0 postinstall /Users/.../appengine/.../src/main/webapp-src/community/node_modules/history
> node ./npm-scripts/postinstall.js
> nodemon#1.15.1 postinstall /Users/.../appengine/.../src/main/webapp-src/community/node_modules/nodemon
> node -e "console.log('\u001b[32mLove nodemon? You can now support the project via the open collective:\u001b[22m\u001b[39m\n > \u001b[96m\u001b[1mhttps://opencollective.com/nodemon/donate\u001b[0m\n')" || exit 0
Love nodemon? You can now support the project via the open collective:
> https://opencollective.com/nodemon/donate
> react-router#1.0.3 postinstall /Users/.../appengine/.../src/main/webapp-src/community/node_modules/react-router
> node ./npm-scripts/postinstall.js
> history#1.13.1 postinstall /Users/.../appengine/.../src/main/webapp-src/community/node_modules/redux-simple-router/node_modules/history
> node ./npm-scripts/postinstall.js
(node:69370) Warning: Possible EventEmitter memory leak detected. 11 SIGINT listeners added. Use emitter.setMaxListeners() to increase limit
<===npm WARN CGC#1.0.0 No repository field.
npm WARN CGC#1.0.0 No license field.
npm WARN The package gulp is included as both a dev and production dependency.
npm WARN The package react is included as both a dev and production dependency.
npm WARN The package react-google-maps is included as both a dev and production dependency.
added 1441 packages from 828 contributors in 109.328s
[!] 107 vulnerabilities found [1435 packages audited]
Severity: 10 Low | 37 Moderate | 45 High | 15 Critical
Run `npm audit` for more detail
> Task :...:community:installGulp
npm WARN deprecated source-map-resolve#0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated resolve-url#0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix#0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated source-map-url#0.4.1: See https://github.com/lydell/source-map-url#deprecated
/Users/.../appengine/.../src/main/webapp-src/community/.gradle/nodejs/node-v6.17.1-darwin-x64/bin/gulp -> /Users/.../appengine/.../src/main/webapp-src/community/.gradle/nodejs/node-v6.17.1-darwin-x64/lib/node_modules/gulp-cli/bin/gulp.js
+ gulp-cli#2.3.0
updated 1 package in 14.783s
> Task :...:community:gulp_compile
[17:23:37] Using gulpfile ~/appengine/.../src/main/webapp-src/community/gulpfile.js
[17:23:37] Starting 'clean'...
[17:23:37] Finished 'clean' after 139 ms
[17:23:37] Starting 'compile-dev'...
[17:23:39] Finished 'compile-dev' after 1.88 s
[17:23:39] Starting 'build'...
[17:23:39] Finished 'build' after 45 μs
[17:24:04] [webpack] Hash: b01eec9b9b215740e23f
Version: webpack 1.15.0
Time: 24703ms
Asset Size Chunks Chunk Names
b2fd09d2d6e7ce1b328ead20a178e92b.svg 1.16 kB [emitted]
fa4f68bc1ae76084810c59bdfd838ce5.svg 297 bytes [emitted]
873ecd9c5293d504c3525d348848dacc.svg 109 kB [emitted]
e18bbf611f2a2e43afc071aa2f4e1512.ttf 45.4 kB [emitted]
fa2772327f55d8198301fdb8bcfc8158.woff 23.4 kB [emitted]
448c34a56d699c29117adc64c43affeb.woff2 18 kB [emitted]
ff91b2ead3bdcb704102a3750daa8db6.svg 2.29 kB [emitted]
5be796adcb6355893130a01594579430.svg 1.38 kB [emitted]
a6dce5d152826a4eef514aa5a344bd2c.svg 1.58 kB [emitted]
31ec490d5b132c71180a22acac41ddd1.svg 842 bytes [emitted]
132b63502ff1aa2c6e2ab92a1571ec07.svg 2.29 kB [emitted]
b35f3f021292331b1f871289333e8d00.svg 815 bytes [emitted]
f4769f9bdb7466be65088239c12046d1.eot 20.1 kB [emitted]
fb2b314f1f11b897d298e53ca5556ef8.svg 1.38 kB [emitted]
cab33a29ba7c9ff19789abc3f6d11dfa.svg 1.58 kB [emitted]
3d185c654eba9403898313140e6ade9f.svg 842 bytes [emitted]
0e1f36d20f6a179798b236581ca3d745.svg 850 bytes [emitted]
1de25592aed1d35f983658132ea3719c.png 33.3 kB [emitted]
index.js 2.83 MB 0 [emitted] main
app.css 233 kB 0 [emitted] main
index.js.map 3.41 MB 0 [emitted] main
app.css.map 84 bytes 0 [emitted] main
favicon.ico NaN undefined [emitted]
index.html 1.07 kB [emitted]
> Task :...:appengineDeploy
WARNING: In file [/Users/.../appengine/.../build/staged-app/app.yaml]: ('module', 'Field module is deprecated; use service instead.')
Services to deploy:
descriptor: [/Users/.../appengine/.../build/staged-app/app.yaml]
source: [/Users/.../appengine/.../build/staged-app]
target project: [dev...]
target service: [...]
target version: [pd-...]
target url: [https://pd-...-dot-...-dot-dev....appspot.com]
(add --promote if you also want to make this service available from
[https://...-dot-dev....appspot.com])
Beginning deployment of service [...]...
#============================================================#
#= Uploading 0 files to Google Cloud Storage =#
#============================================================#
File upload done.
ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: Instance class (B4_1G) is only allowed with the manual or basic scaling value.
- '#type': type.googleapis.com/google.rpc.BadRequest
fieldViolations:
- description: Instance class (B4_1G) is only allowed with the manual or basic scaling
value.
field: version.instance_class
> Task :...:appengineDeploy FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':...:appengineDeploy'.
> com.google.cloud.tools.appengine.AppEngineException: com.google.cloud.tools.appengine.operations.cloudsdk.process.ProcessHandlerException: com.google.cloud.tools.appengine.AppEngineException: Non zero exit: 1
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':...:appengineDeploy'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$3(ExecuteActionsTaskExecuter.java:186)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:268)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:184)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:173)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:109)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$call$2(DefaultBuildOperationExecutor.java:76)
at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:76)
...
Fixed! I had to fix the instance error that came up namely:
ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: Instance class (B4_1G) is only allowed with the manual or basic scaling value.
- '#type': type.googleapis.com/google.rpc.BadRequest
fieldViolations:
- description: Instance class (B4_1G) is only allowed with the manual or basic scaling
value.
field: version.instance_class
> Task :...:appengineDeploy FAILED
I did this by adding
<basic-scaling>
<max-instances>10</max-instances>
</basic-scaling>
to one of the xml files

Use VueJS with Laravel – npm install error

I know this question is already asked, But I think my problem is different than the problems described in the already asked questions.
here is the output of npm install command
here is the "/root/.npm/_logs/2018-07-12T14_14_35_726Z-debug.log" file
3304 silly saveTree | | | | +-- pify#2.3.0
3304 silly saveTree | | | | `-- strip-bom#3.0.0
3304 silly saveTree | | | `-- path-type#2.0.0
3304 silly saveTree | | +-- which-module#2.0.0
3304 silly saveTree | | `-- yargs-parser#7.0.0
3304 silly saveTree | `-- yargs#8.0.2
3304 silly saveTree +-- lodash#4.17.10
3304 silly saveTree +-- popper.js#1.14.3
3304 silly saveTree `-- vue#2.5.16
3305 warn ajv-keywords#3.2.0 requires a peer of ajv#^6.0.0 but none is installed. You must install peer dependencies yourself.
3306 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules/fsevents):
3307 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
3308 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin
3308 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
3308 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux
3308 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
3309 verbose stack Error: node-sass#4.9.2 postinstall: `node scripts/build.js`
3309 verbose stack Exit status 1
3309 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:304:16)
3309 verbose stack at emitTwo (events.js:126:13)
3309 verbose stack at EventEmitter.emit (events.js:214:7)
3309 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
3309 verbose stack at emitTwo (events.js:126:13)
3309 verbose stack at ChildProcess.emit (events.js:214:7)
3309 verbose stack at maybeClose (internal/child_process.js:925:16)
3309 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
3310 verbose pkgid node-sass#4.9.2
3311 verbose cwd /home/amarjit/Documents/localhost/laraveys
3312 verbose Linux 4.15.0-23-generic
3313 verbose argv "/usr/bin/node" "/usr/bin/npm" "install"
3314 verbose node v8.11.3
3315 verbose npm v6.1.0
3316 error code ELIFECYCLE
3317 error errno 1
3318 error node-sass#4.9.2 postinstall: `node scripts/build.js`
3318 error Exit status 1
3319 error Failed at the node-sass#4.9.2 postinstall script.
3319 error This is probably not a problem with npm. There is likely additional logging output above.
3320 verbose exit [ 1, true ]
I found a solution, I think the issue was regarding permissions of all files in node_modules directory. So I just ran
sudo chmod -R a+rwx ./node_modules
For me it was installing nodejs-legacy. Type node -v and if that returns an error:
apt install nodejs-legacy
Should do the trick. Happy coding!

Gulp/Foundation 6 'foundation watch' error

Opening the command prompt in the folder I am working in. running 'foundation watch' and it gives me this error:
[10:19:50] 'build' errored after 13 s
[10:19:50] Error in plugin 'run-sequence'
Message:
An error occured in task 'clean'.
Error: foundation-zurb-template#1.0.0 start: gulp
Exit status 1
at EventEmitter. (C:\Users\Dev3\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\npm\lib\utils\lifecycle.js:214:16)
at emitTwo (events.js:87:13)
at EventEmitter.emit (events.js:172:7)
at ChildProcess. (C:\Users\Dev3\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\npm\lib\utils\spawn.js:24:14)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

gyp errors when trying to install opencv node on mac mavericks trouble

I am trying to install node opencv , i'm running mavericks on a mac. i run "npm install opencv" and have tried so many things to fix this problem but can't figure it out.
here are my errors: there are also a bunch of warnings but this is the errors before it fails:
similar errors happen when i run node-gyp configure or node-gyp rebuild
I tried to get help here: https://github.com/joyent/node/issues/3113
but it didn't help, I still get gyp errors
when running npm install opencv: here is the entire output
npm WARN package.json make#0.0.0 No repository field.
npm http GET https://registry.npmjs.org/opencv
npm http 304 https://registry.npmjs.org/opencv
> opencv#0.4.0 preinstall /Users/gabriellalevine/ardrone-webflight/node_modules/opencv
> node-gyp clean rebuild
CXX(target) Release/obj.target/opencv/src/init.o
CXX(target) Release/obj.target/opencv/src/Matrix.o
../src/Matrix.cc:110:13: warning: variable 'mat' is used uninitialized whenever
'if' condition is false [-Wsometimes-uninitialized]
} else if (args.Length() == 5) {
^~~~~~~~~~~~~~~~~~
../src/Matrix.cc:119:2: note: uninitialized use occurs here
mat->Wrap(args.Holder());
^~~
../src/Matrix.cc:110:9: note: remove the 'if' if its condition is always true
} else if (args.Length() == 5) {
^~~~~~~~~~~~~~~~~~~~~~~~
../src/Matrix.cc:104:13: note: initialize the variable 'mat' to silence this
warning
Matrix *mat;
^
= nullptr
1 warning generated.
CXX(target) Release/obj.target/opencv/src/OpenCV.o
CXX(target) Release/obj.target/opencv/src/CascadeClassifierWrap.o
CXX(target) Release/obj.target/opencv/src/Contours.o
CXX(target) Release/obj.target/opencv/src/Point.o
CXX(target) Release/obj.target/opencv/src/VideoCaptureWrap.o
CXX(target) Release/obj.target/opencv/src/CamShift.o
CXX(target) Release/obj.target/opencv/src/HighGUI.o
../src/HighGUI.cc:38:13: warning: variable 'win' is used uninitialized whenever
'if' condition is false [-Wsometimes-uninitialized]
} else if (args.Length() == 2){
^~~~~~~~~~~~~~~~~~
../src/HighGUI.cc:42:2: note: uninitialized use occurs here
win->Wrap(args.Holder());
^~~
../src/HighGUI.cc:38:9: note: remove the 'if' if its condition is always true
} else if (args.Length() == 2){
^~~~~~~~~~~~~~~~~~~~~~~
../src/HighGUI.cc:35:19: note: initialize the variable 'win' to silence this
warning
NamedWindow* win;
^
= nullptr
1 warning generated.
CXX(target) Release/obj.target/opencv/src/FaceRecognizer.o
../src/FaceRecognizer.cc:64:76: error: too many arguments to function call,
expected at most 4, have 5
...f = cv::createLBPHFaceRecognizer(1, 8, 8, 8, 80.0);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~
/usr/local/Cellar/opencv/2.4.0/include/opencv2/contrib/contrib.hpp:951:16: note:
'createLBPHFaceRecognizer' declared here
CV_EXPORTS Ptr<FaceRecognizer> createLBPHFaceRecognizer(int radius=1...
^
../src/FaceRecognizer.cc:90:42: error: too many arguments to function call,
expected at most 4, have 5
radius, neighbors, grid_x, grid_y, threshold
^~~~~~~~~
/usr/local/Cellar/opencv/2.4.0/include/opencv2/contrib/contrib.hpp:951:16: note:
'createLBPHFaceRecognizer' declared here
CV_EXPORTS Ptr<FaceRecognizer> createLBPHFaceRecognizer(int radius=1...
^
../src/FaceRecognizer.cc:111:19: error: too many arguments to function call,
expected at most single argument 'num_components', have 2 arguments
components, threshold
^~~~~~~~~
/usr/local/Cellar/opencv/2.4.0/include/opencv2/contrib/contrib.hpp:949:16: note:
'createEigenFaceRecognizer' declared here
CV_EXPORTS Ptr<FaceRecognizer> createEigenFaceRecognizer(int num_com...
^
../src/FaceRecognizer.cc:132:19: error: too many arguments to function call,
expected at most single argument 'num_components', have 2 arguments
components, threshold
^~~~~~~~~
/usr/local/Cellar/opencv/2.4.0/include/opencv2/contrib/contrib.hpp:950:16: note:
'createFisherFaceRecognizer' declared here
CV_EXPORTS Ptr<FaceRecognizer> createFisherFaceRecognizer(int num_co...
^
../src/FaceRecognizer.cc:218:14: error: no member named 'update' in
'cv::FaceRecognizer'
self->rec->update(images, labels);
~~~~~~~~~ ^
../src/FaceRecognizer.cc:234:26: error: too many arguments to function call,
expected single argument 'src', have 3 arguments
self->rec->predict(im, predictedLabel, confidence);
~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/opencv/2.4.0/include/opencv2/contrib/contrib.hpp:931:9: note:
'predict' declared here
virtual int predict(InputArray src) const = 0;
^
../src/FaceRecognizer.cc:273:26: error: no member named 'getMat' in
'cv::FaceRecognizer'
cv::Mat m = self->rec->getMat(key);
~~~~~~~~~ ^
7 errors generated.
make: *** [Release/obj.target/opencv/src/FaceRecognizer.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:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Darwin 13.0.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "clean" "rebuild"
gyp ERR! cwd /Users/gabriellalevine/ardrone-webflight/node_modules/opencv
gyp ERR! node -v v0.10.20
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0
Your errors are things like this:
../src/FaceRecognizer.cc:64:76: error: too many arguments to function call,
expected at most 4, have 5
...f = cv::createLBPHFaceRecognizer(1, 8, 8, 8, 80.0);
So the OpenCV version you are compiling against is different from the one that the node module works with.
The fifth argument to createLBPHFaceRecognizer was added in this opencv commit, so it looks like you will need at least OpenCV v2.4.3, whereas you errors mention v2.4.0.
You should make sure your brew install is full up-to-date by running brew update and then brew upgrade opencv to pull in the most recent OpenCV from homebrew, which looks to be v2.4.7.1.
Hm, in my case was not the same, but you can try the following.
Here is how I fixed OpenCV and npm opencv on Mac OS X:
install homebrew ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
install opencv brew install homebrew/science/opencv
install pkg-config: brew install pkg-config
Find location of file named opencv.pc by running mdfind -name opencv.pc
Run nano .bash_profile and add path found in step 4. to your Bash environment variables. Save file. Close and relaunch Terminal.
Example from my Mac:
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/Cellar/opencv/2.4.12_2/lib/pkgconfig
export PKG_CONFIG_PATH
You can check if configured by running env | grep PKG_CONFIG_PATH in your terminal.

Issue installing node-postgres with npm (on windows)

I am trying to install pg on windows using npm, but receive the following error:
c:\Users\someone\Dropbox\somefolder>npm install -g pg
npm http GET https://registry.npmjs.org/pg
npm http 304 https://registry.npmjs.org/pg
npm http GET https://registry.npmjs.org/generic-pool/2.0.2
npm http 304 https://registry.npmjs.org/generic-pool/2.0.2
> pg#0.11.3 install C:\Users\someone\AppData\Roaming\npm\node_modules\pg
> node-gyp rebuild || (exit 0)
C:\Users\someone\AppData\Roaming\npm\node_modules\pg>node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-
yp\bin\node-gyp.js" rebuild
'pg_config' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\gyp", line 18, in <module>
sys.exit(gyp.main(sys.argv[1:]))
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\__init__.py", line 511, in main
return gyp_main(args)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\__init__.py", line 494, in gyp_main
options.circular_check)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\__init__.py", line 133, in Load
depth, generator_input_info, check, circular_check)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 2378, in Load
depth, check)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 384, in LoadTargetBuildFile
build_file_data, PHASE_EARLY, variables, build_file_path)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 1053, in ProcessVariablesAndConditionsInD
build_file)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 1068, in ProcessVariablesAndConditionsInL
ProcessVariablesAndConditionsInDict(item, phase, variables, build_file)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 1027, in ProcessVariablesAndConditionsInD
ProcessConditionsInDict(the_dict, phase, variables, build_file)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 904, in ProcessConditionsInDict
variables, build_file)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 1046, in ProcessVariablesAndConditionsInD
build_file, key)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 1046, in ProcessVariablesAndConditionsInD
build_file, key)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 1053, in ProcessVariablesAndConditionsInD
build_file)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 1072, in ProcessVariablesAndConditionsInL
expanded = ExpandVariables(item, phase, variables, build_file)
File "C:\Users\someone\.node-gyp\0.8.16\tools\gyp\pylib\gyp\input.py", line 714, in ExpandVariables
(contents, p.returncode))
Exception: Call to 'pg_config --libdir' returned exit status 1. 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 (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\co
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "
gyp ERR! cwd C:\Users\someone\AppData\Roaming\npm\node_modules\pg
gyp ERR! node -v v0.8.16
gyp ERR! node-gyp -v v0.7.3
gyp ERR! not ok
pg#0.11.3 C:\Users\someone\AppData\Roaming\npm\node_modules\pg
└── generic-pool#2.0.2
My versions are as follow:
c:\>node -v
v0.8.16
c:\>npm -v
1.1.69
When I check out the repository and try node-gyp rebuild I get the following error message:
C:\Users\someone\Downloads\node-postgres.git>node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp#0.8.3
gyp info using node#0.8.16 | win32 | ia32
gyp info spawn python
gyp info spawn args [ 'C:\\Users\\lamassey\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\gyp',
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\\lamassey\\Downloads\\node-postgres.git\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\lamassey\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\lamassey\\.node-gyp\\0.8.16\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\lamassey\\.node-gyp\\0.8.16',
gyp info spawn args '-Dmodule_root_dir=C:\\Users\\lamassey\\Downloads\\node-postgres.git',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\Users\\lamassey\\Downloads\\node-postgres.git\\build',
gyp info spawn args '-Goutput_dir=.' ]
'pg_config' is not recognized as an internal or external command,
operable program or batch file.
gyp: Call to 'pg_config --libdir' returned exit status 1. 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:\Users\lamassey\AppData\Roaming\npm\node_modules\node-gyp\lib\configure.js:420:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Users\\lamassey\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\lamassey\Downloads\node-postgres.git
gyp ERR! node -v v0.8.16
gyp ERR! node-gyp -v v0.8.3
gyp ERR! not ok
Per the line
'pg_config' is not recognized as an internal or external command
I just need to install PostgreSQL before trying to
npm install pg
Have you checked out the installation instructions for node-gyp?
https://github.com/TooTallNate/node-gyp#installation
I recently had issues with node-gyp on Windows also while trying to install a separate module that depended on it. Make sure you have each of the items installed that it requires. Pay attention to this part specifically:
For 64-bit builds of node and native modules you will also need the Windows 7 64-bit SDK
If the install fails, try uninstalling any C++ 2010 x64&x86 Redistributable that you have installed first.
On OSx see Peter Lyons answer (accepted). The Xcode Version option worked for me.
https://stackoverflow.com/a/12825911/296765

Resources