VS TACO Update 6: Could not find module 'umask' - visual-studio-cordova

(Looking for the solution? Check the bottom of this question for the solution)
Updated to the latest Visual Studio Tools for Apache Cordova to Update 6, but still have some issue with latest Node.JS installed (v5.6.0).
Creating a new empty project and building the first time, gives this output:
1>------ Build started: Project: BlankCordovaApp2, Configuration: Debug Android ------
1> Your environment has been set up for using Node.js 5.6.0 (x64) and npm.
1> ------ Ensuring correct global installation of package from source package directory: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\APACHECORDOVATOOLS\packages\vs-tac
1> ------ Name from source package.json: vs-tac
1> ------ Version from source package.json: 1.0.34
1> ------ Package already installed globally at correct version.
1> ------ Cordova tools 5.4.1 already installed.
1> module.js:341
1> throw err;
1> ^
1>
1>MSBUILD : cordova-build error BLD401: Error : BLD00401 : Could not find module 'umask'. Please Go to Tools --> Options --> Tools for Apache Cordova --> Cordova Tools --> Clear Cordova Cache and try building again.
1> at Function.Module._resolveFilename (module.js:339:15)
1> at Function.Module._load (module.js:290:25)
1> at Module.require (module.js:367:17)
1> at require (internal/module.js:16:19)
1> at Object.<anonymous> (C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\lib\utils\umask.js:1:75)
1> at Module._compile (module.js:413:34)
1> at Object.Module._extensions..js (module.js:422:10)
1> at Module.load (module.js:357:32)
1> at Function.Module._load (module.js:314:12)
1> at Module.require (module.js:367:17)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Then running the Clear Cordova Cache, this was the output:
Clearing Apache Cordova cache...
Removing package vs-tac ...
Removing package vs-npm ...
Completed
Restarting, opening same empty project and building, gave the following output:
1>------ Rebuild All started: Project: BlankCordovaApp2, Configuration: Debug Android ------
1> C:\Users\sondr\AppData\Roaming\npm\node_modules\vs-npm\2.14.9\npm -> C:\Users\sondr\AppData\Roaming\npm\node_modules\vs-npm\2.14.9\node_modules\npm\bin\npm-cli.js
1> C:\Users\sondr\AppData\Roaming\npm\node_modules\vs-npm\2.14.9
1> `-- npm#2.14.9
1> +-- abbrev#1.0.7
1> +-- ansi#0.3.0
1> +-- ansicolors#0.3.2
1> +-- ansistyles#0.1.3
1> +-- archy#1.0.0
1> +-- async-some#1.0.2
1> +-- block-stream#0.0.8
1> +-- char-spinner#1.0.1
1> +-- chmodr#1.0.2
1> +-- chownr#1.0.1
1> +-- cmd-shim#2.0.1
1> | `-- graceful-fs#3.0.8
1> +-- columnify#1.5.2
1> | +-- strip-ansi#3.0.0
1> | | `-- ansi-regex#2.0.0
1> | `-- wcwidth#1.0.0
1> | `-- defaults#1.0.2
1> | `-- clone#0.1.19
1> +-- config-chain#1.1.9
1> | `-- proto-list#1.2.4
1> +-- dezalgo#1.0.3
1> | `-- asap#2.0.3
1> +-- editor#1.0.0
1> +-- fs-vacuum#1.2.7
1> +-- fs-write-stream-atomic#1.0.4
1> +-- fstream#1.0.8
1> +-- fstream-npm#1.0.5
1> | `-- fstream-ignore#1.0.3
1> +-- github-url-from-git#1.4.0
1> +-- github-url-from-username-repo#1.0.2
1> +-- glob#5.0.15
1> | `-- path-is-absolute#1.0.0
1> +-- graceful-fs#4.1.2
1> +-- hosted-git-info#2.1.4
1> +-- inflight#1.0.4
1> +-- inherits#2.0.1
1> +-- ini#1.3.4
1> +-- init-package-json#1.9.1
1> | `-- promzard#0.3.0
1> +-- lockfile#1.0.1
1> +-- lru-cache#2.7.0
1> +-- minimatch#3.0.0
1> | `-- brace-expansion#1.1.1
1> | +-- balanced-match#0.2.1
1> | `-- concat-map#0.0.1
1> +-- mkdirp#0.5.1
1> | `-- minimist#0.0.8
1> +-- node-gyp#3.0.3
1> | +-- glob#4.5.3
1> | | `-- minimatch#2.0.10
1> | | `-- brace-expansion#1.1.0
1> | | +-- balanced-match#0.2.0
1> | | `-- concat-map#0.0.1
1> | +-- minimatch#1.0.0
1> | | `-- sigmund#1.0.1
1> | +-- path-array#1.0.0
1> | | `-- array-index#0.1.1
1> | | `-- debug#2.2.0
1> | | `-- ms#0.7.1
1> | `-- tar#1.0.3
1> +-- nopt#3.0.4
1> +-- normalize-git-url#3.0.1
1> +-- normalize-package-data#2.3.4
1> | `-- is-builtin-module#1.0.0
1> | `-- builtin-modules#1.1.0
1> +-- npm-cache-filename#1.0.2
1> +-- npm-install-checks#1.0.6
1> +-- npm-package-arg#4.0.2
1> +-- npm-registry-client#7.0.7
1> | +-- concat-stream#1.5.0
1> | | +-- readable-stream#2.0.2
1> | | | +-- core-util-is#1.0.1
1> | | | +-- isarray#0.0.1
1> | | | +-- process-nextick-args#1.0.3
1> | | | +-- string_decoder#0.10.31
1> | | | `-- util-deprecate#1.0.1
1> | | `-- typedarray#0.0.6
1> | `-- npmlog#2.0.2
1> | +-- ansi#0.3.1
1> | +-- are-we-there-yet#1.0.6
1> | | `-- delegates#1.0.0
1> | `-- gauge#1.2.5
1> | +-- has-unicode#2.0.0
1> | +-- lodash.pad#3.3.0
1> | | +-- lodash._root#3.0.0
1> | | `-- lodash.repeat#3.2.0
1> | +-- lodash.padleft#3.1.1
1> | | +-- lodash._basetostring#3.0.1
1> | | `-- lodash._createpadding#3.6.1
1> | `-- lodash.padright#3.1.1
1> +-- npm-user-validate#0.1.2
1> +-- npmlog#1.2.1
1> | +-- are-we-there-yet#1.0.4
1> | | `-- delegates#0.1.0
1> | `-- gauge#1.2.0
1> | +-- has-unicode#1.0.0
1> | +-- lodash.pad#3.1.0
1> | | +-- lodash._basetostring#3.0.0
1> | | `-- lodash._createpadding#3.6.0
1> | | `-- lodash.repeat#3.0.0
1> | +-- lodash.padleft#3.1.1
1> | `-- lodash.padright#3.1.1
1> +-- once#1.3.2
1> +-- opener#1.4.1
1> +-- osenv#0.1.3
1> | +-- os-homedir#1.0.0
1> | `-- os-tmpdir#1.0.1
1> +-- path-is-inside#1.0.1
1> +-- read#1.0.7
1> | `-- mute-stream#0.0.5
1> +-- read-installed#4.0.3
1> | +-- debuglog#1.0.1
1> | +-- readdir-scoped-modules#1.0.2
1> | `-- util-extend#1.0.1
1> +-- read-package-json#2.0.1
1> | `-- json-parse-helpfulerror#1.0.3
1> | `-- jju#1.2.0
1> +-- readable-stream#1.1.13
1> | +-- core-util-is#1.0.1
1> | +-- isarray#0.0.1
1> | `-- string_decoder#0.10.31
1> +-- realize-package-specifier#3.0.1
1> +-- request#2.65.0
1> | +-- aws-sign2#0.6.0
1> | +-- bl#1.0.0
1> | | `-- readable-stream#2.0.3
1> | | +-- core-util-is#1.0.1
1> | | +-- isarray#0.0.1
1> | | +-- process-nextick-args#1.0.3
1> | | +-- string_decoder#0.10.31
1> | | `-- util-deprecate#1.0.2
1> | +-- caseless#0.11.0
1> | +-- combined-stream#1.0.5
1> | | `-- delayed-stream#1.0.0
1> | +-- extend#3.0.0
1> | +-- forever-agent#0.6.1
1> | +-- form-data#1.0.0-rc3
1> | | `-- async#1.5.0
1> | +-- har-validator#2.0.2
1> | | +-- chalk#1.1.1
1> | | | +-- ansi-styles#2.1.0
1> | | | +-- escape-string-regexp#1.0.3
1> | | | +-- has-ansi#2.0.0
1> | | | | `-- ansi-regex#2.0.0
1> | | | +-- strip-ansi#3.0.0
1> | | | | `-- ansi-regex#2.0.0
1> | | | `-- supports-color#2.0.0
1> | | +-- commander#2.9.0
1> | | | `-- graceful-readlink#1.0.1
1> | | +-- is-my-json-valid#2.12.2
1> | | | +-- generate-function#2.0.0
1> | | | +-- generate-object-property#1.2.0
1> | | | | `-- is-property#1.0.2
1> | | | +-- jsonpointer#2.0.0
1> | | | `-- xtend#4.0.0
1> | | `-- pinkie-promise#1.0.0
1> | | `-- pinkie#1.0.0
1> | +-- hawk#3.1.0
1> | | +-- boom#2.10.0
1> | | +-- cryptiles#2.0.5
1> | | +-- hoek#2.16.3
1> | | `-- sntp#1.0.9
1> | +-- http-signature#0.11.0
1> | | +-- asn1#0.1.11
1> | | +-- assert-plus#0.1.5
1> | | `-- ctype#0.5.3
1> | +-- isstream#0.1.2
1> | +-- json-stringify-safe#5.0.1
1> | +-- mime-types#2.1.7
1> | | `-- mime-db#1.19.0
1> | +-- node-uuid#1.4.3
1> | +-- oauth-sign#0.8.0
1> | +-- qs#5.2.0
1> | +-- stringstream#0.0.5
1> | +-- tough-cookie#2.2.0
1> | `-- tunnel-agent#0.4.1
1> +-- retry#0.8.0
1> +-- rimraf#2.4.3
1> +-- semver#5.0.3
1> +-- sha#2.0.1
1> | `-- readable-stream#2.0.2
1> | +-- core-util-is#1.0.1
1> | +-- isarray#0.0.1
1> | +-- process-nextick-args#1.0.3
1> | +-- string_decoder#0.10.31
1> | `-- util-deprecate#1.0.1
1> +-- slide#1.1.6
1> +-- sorted-object#1.0.0
1> +-- spdx#0.4.1
1> | `-- spdx-license-ids#1.0.1
1> +-- tar#2.2.1
1> +-- text-table#0.2.0
1> +-- uid-number#0.0.6
1> +-- umask#1.1.0
1> +-- validate-npm-package-license#3.0.1
1> | +-- spdx-correct#1.0.1
1> | | `-- spdx-license-ids#1.0.2
1> | `-- spdx-expression-parse#1.0.0
1> | +-- spdx-exceptions#1.0.2
1> | `-- spdx-license-ids#1.0.2
1> +-- validate-npm-package-name#2.2.2
1> | `-- builtins#0.0.7
1> +-- which#1.2.0
1> | `-- is-absolute#0.1.7
1> | `-- is-relative#0.1.3
1> +-- wrappy#1.0.1
1> `-- write-file-atomic#1.1.3
1> Your environment has been set up for using Node.js 5.6.0 (x64) and npm.
1> ------ Ensuring correct global installation of package from source package directory: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\APACHECORDOVATOOLS\packages\vs-tac
1> ------ Name from source package.json: vs-tac
1> ------ Version from source package.json: 1.0.34
1> ------ Package not currently installed globally.
1> ------ Installing globally from source package. This could take a few minutes...
1> Each package is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies.
1> > edge-cs#0.3.0 install C:\Users\sondr\AppData\Roaming\npm\node_modules\vs-tac\node_modules\edge\node_modules\edge-cs
1> > node tools/install.js
1> > edge#5.0.0 install C:\Users\sondr\AppData\Roaming\npm\node_modules\vs-tac\node_modules\edge
1> > node tools/install.js
1> Success: platform check for edge.js: node.js x64 v5.6.0
1> C:\Users\sondr\AppData\Roaming\npm\vs-tac-cli -> C:\Users\sondr\AppData\Roaming\npm\node_modules\vs-tac\vs-tac-cli.cmd
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\npm requires glob#'~5.0.15' but will load
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\glob,
1> npm WARN unmet dependency which is version 4.0.6
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\npm requires graceful-fs#'~4.1.2' but will load
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\graceful-fs,
1> npm WARN unmet dependency which is version 3.0.8
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\npm requires lru-cache#'~3.2.0' but will load
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\lru-cache,
1> npm WARN unmet dependency which is version 2.7.3
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\npm requires minimatch#'~3.0.0' but will load
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\minimatch,
1> npm WARN unmet dependency which is version 1.0.0
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\npm requires nopt#'~3.0.6' but will load
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\nopt,
1> npm WARN unmet dependency which is version 3.0.1
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\npm requires request#'~2.67.0' but will load
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\request,
1> npm WARN unmet dependency which is version 2.47.0
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\npm requires rimraf#'~2.4.4' but will load
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\rimraf,
1> npm WARN unmet dependency which is version 2.5.0
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\npm requires semver#'~5.1.0' but will load
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\semver,
1> npm WARN unmet dependency which is version 4.3.6
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\npm requires tar#'~2.2.1' but will load
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\tar,
1> npm WARN unmet dependency which is version 1.0.2
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\npm requires uid-number#'0.0.6' but will load
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\uid-number,
1> npm WARN unmet dependency which is version 0.0.5
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\taco-cli\node_modules\form-data requires async#'~0.9.0' but will load
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\taco-cli\node_modules\async,
1> npm WARN unmet dependency which is version 1.4.2
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\taco-cli\node_modules\hash-files requires async#'0.x.x' but will load
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\taco-cli\node_modules\async,
1> npm WARN unmet dependency which is version 1.4.2
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\taco-cli\node_modules\hash-files requires glob#'3.x.x' but will load
1> npm WARN unmet dependency C:\Users\sondr\AppData\Roaming\npm\node_modules\taco-cli\node_modules\glob,
1> npm WARN unmet dependency which is version 5.0.15
1> vs-tac#1.0.34 C:\Users\sondr\AppData\Roaming\npm\node_modules\vs-tac
1> ├── q#1.0.1
1> ├── rimraf#2.2.6
1> ├── mkdirp#0.3.5
1> ├── semver#2.3.1
1> ├── adm-zip#0.4.4
1> ├── optimist#0.6.1 (wordwrap#0.0.3, minimist#0.0.10)
1> ├── elementtree#0.1.6 (sax#0.3.5)
1> ├── fstream#1.0.8 (inherits#2.0.1, graceful-fs#4.1.3, mkdirp#0.5.1)
1> ├── request#2.36.0 (aws-sign2#0.5.0, forever-agent#0.5.2, tunnel-agent#0.4.2, qs#0.6.6, oauth-sign#0.3.0, mime#1.2.11, json-stringify-safe#5.0.1, tough-cookie#2.2.1, node-uuid#1.4.7, http-signature#0.10.1, form-data#0.1.4, hawk#1.0.0)
1> ├── tar#0.1.20 (inherits#2.0.1, block-stream#0.0.8, fstream#0.1.31)
1> ├── vs-libimobile#0.0.2
1> ├── ripple-emulator#0.9.32 (connect-xcors#0.5.2, colors#0.6.0-1, open#0.0.3, accounting#0.4.1, request#2.12.0, moment#1.7.2, express#3.1.0)
1> └── edge#5.0.0 (nan#2.2.0, edge-cs#0.3.0)
1> ------ npm install of vs-tac#1.0.34 from C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\APACHECORDOVATOOLS\packages\vs-tac completed.
1> ------ Cordova tools 5.4.1 already installed.
1> module.js:341
1> throw err;
1> ^
1>
1>MSBUILD : cordova-build error BLD401: Error : BLD00401 : Could not find module 'umask'. Please Go to Tools --> Options --> Tools for Apache Cordova --> Cordova Tools --> Clear Cordova Cache and try building again.
1> at Function.Module._resolveFilename (module.js:339:15)
1> at Function.Module._load (module.js:290:25)
1> at Module.require (module.js:367:17)
1> at require (internal/module.js:16:19)
1> at Object.<anonymous> (C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\lib\utils\umask.js:1:75)
1> at Module._compile (module.js:413:34)
1> at Object.Module._extensions..js (module.js:422:10)
1> at Module.load (module.js:357:32)
1> at Function.Module._load (module.js:314:12)
1> at Module.require (module.js:367:17)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
For my Visual Studio options, I have moved the $(PATH) variable to the top in the "External Web Tools", so VS uses the globally installed version of Node.JS.
There is a umask package located in the vs-npm:
C:\Users\sondr\AppData\Roaming\npm\node_modules\vs-npm\2.14.9\node_modules\npm\node_modules\umask
There are no umask in the vs-tac module folder, as there is no dependency on the package.json on that.
First I ran "npm install taco-cli -g".
Then I ran "npm install umask -g", which returned missing npmlog package. Then ran "npm install npmlog -g" and built the project again. Resulting in this error output:
1>------ Build started: Project: BlankCordovaApp2, Configuration: Debug Android ------
1> Your environment has been set up for using Node.js 5.6.0 (x64) and npm.
1> ------ Ensuring correct global installation of package from source package directory: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\APACHECORDOVATOOLS\packages\vs-tac
1> ------ Name from source package.json: vs-tac
1> ------ Version from source package.json: 1.0.34
1> ------ Package already installed globally at correct version.
1> ------ Cordova tools 5.4.1 already installed.
1> C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\lib\npm.js:19
1> , fs = gfs.gracefulify(require('fs'))
1> ^
1>
1> TypeError: gfs.gracefulify is not a function
1> at C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\lib\npm.js:19:14
1> at Object.<anonymous> (C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\lib\npm.js:469:3)
1> at Module._compile (module.js:413:34)
1> at Object.Module._extensions..js (module.js:422:10)
1> at Module.load (module.js:357:32)
1> at Function.Module._load (module.js:314:12)
1> at Module.require (module.js:367:17)
1> at require (internal/module.js:16:19)
1> at Object.<anonymous> (C:\Users\sondr\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\util.js:27:21)
1> at Module._compile (module.js:413:34)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
This error occurs in the cordova folder, so I figured perhaps the issue was now related to cordova and tried "npm install cordova -g".
And then... it works!

So if anyone else have a similar issue, try the following:
npm install cordova -g
If that does not help, run all these commands and see if you have the same luck:
npm install taco-cli -g
npm install umask -g
npm install npmlog -g
npm install cordova -g
Running the cordova command will install version 6 of Cordova, which the Update 6 should be compatible with. I was running 5.4.1 (I think) previously.

Related

Install LIBCURL-DEVEL on SUSE 12.4 to use CURL R package

I'm working with a SUSE SLE 12.4
> cat /etc/SuSE-release
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 4
I'm trying to install the library curl for R [3.6], but I get this error:
* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
** using staged installation
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
* deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
* rpm: libcurl-devel (Fedora, CentOS, RHEL)
* csw: libcurl_dev (Solaris)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘curl’
libcurl4 (version 7.60.0-2.11) is installed.
As suggested from the error message I tried to install the Linux Package libcurl-devel.
Unsurprisingly, since I'm dealing with a dev package, I get this message:
> sudo zypper install libcurl-devel
Loading repository data...
Reading installed packages...
'libcurl-devel' not found in package names. Trying capabilities.
No provider of 'libcurl-devel' found.
Resolving package dependencies...
Nothing to do.
I tried to find an online repo that could provide for that package. I found nothing.
Can anyone help me?
If you need more infos, I'll be happy to provide them.
As requested, here you have more infos.
> zypper se *curl*
Loading repository data...
Reading installed packages...
S | Name | Summary | Type
--+-----------------+----------------------------------------+-----------
i | curl | A Tool for Transferring Data from URLs | package
| curl | A Tool for Transferring Data from URLs | srcpackage
i | libcurl4 | Version 4 of cURL shared library | package
i | libcurl4-32bit | Version 4 of cURL shared library | package
| perl-WWW-Curl | Perl extension interface for libcurl | package
| perl-WWW-Curl | Perl extension interface for libcurl | srcpackage
i | python-pycurl | PycURL -- cURL library module | package
| python-pycurl | PycURL -- cURL library module | srcpackage
| python3-pycurl | PycURL -- cURL library module | package
| python3-pycurl | PycURL -- cURL library module | srcpackage
| qemu-block-curl | cURL block support for QEMU | package
> zypper se libcurl*
Loading repository data...
Reading installed packages...
S | Name | Summary | Type
--+----------------+----------------------------------+--------
i | libcurl4 | Version 4 of cURL shared library | package
i | libcurl4-32bit | Version 4 of cURL shared library | package
You can go here here, search for libcurl-devel for your SUSE version, download it and install it locally using provided instructions. I do see that libcurl-devel is available for your system.
UPDATE
In my understanding, the problem is that you don't have the SDK module activated in your system. If you don't have administrative privileges, ask the administrator to activate the SDK module by running:
SUSEConnect -p sle-sdk/12.4/x86_64
After this module is activated, run:
sudo zypper install libcurl-devel
Try updating your package database prior to installing:
sudo zypper ref

Installing openpose on Colab

I have been trying to install openpose on google colab using the following script.
import os
from os.path import exists, join, basename, splitext
git_repo_url = 'https://github.com/CMU-Perceptual-Computing-Lab/openpose.git'
project_name = splitext(basename(git_repo_url))[0]
if not exists(project_name):
# see: https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/949
# install new CMake becaue of CUDA10
!wget -q https://cmake.org/files/v3.13/cmake-3.13.0-Linux-x86_64.tar.gz
!tar xfz cmake-3.13.0-Linux-x86_64.tar.gz --strip-components=1 -C /usr/local
# clone openpose
!git clone -q --depth 1 $git_repo_url
!sed -i 's/execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/execute_process(COMMAND git checkout f019d0dfe86f49d1140961f8c7dec22130c83154 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/g' openpose/CMakeLists.txt
# install system dependencies
!apt-get -qq install -y libatlas-base-dev libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler libgflags-dev libgoogle-glog-dev liblmdb-dev opencl-headers ocl-icd-opencl-dev libviennacl-dev
# install python dependencies
!pip install -q youtube-dl
# build openpose
!cd openpose && rm -rf build || true && mkdir build && cd build && cmake .. && make -j`nproc`
Here is a link to that colab notebook Link to colab notebook . Worked fine there. However, when I try the same script on my own colab notebook I get the following error.
[ 82%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/io.cpp.o
[ 82%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/math_functions.cpp.o
[ 83%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/signal_handler.cpp.o
[ 83%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/upgrade_proto.cpp.o
[ 84%] Linking CXX shared library ../../lib/libcaffe.so
CMake Error: failed to create symbolic link '../../lib/libcaffe.so': operation not supported on socket
CMake Error: cmake_symlink_library: System Error: Operation not supported
src/caffe/CMakeFiles/caffe.dir/build.make:2215: recipe for target 'lib/libcaffe.so.1.0.0' failed
make[5]: *** [lib/libcaffe.so.1.0.0] Error 1
make[5]: *** Deleting file 'lib/libcaffe.so.1.0.0'
CMakeFiles/Makefile2:240: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failed
make[4]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/openpose_lib.dir/build.make:110: recipe for target 'caffe/src/openpose_lib-stamp/openpose_lib-build' failed
make[2]: *** [caffe/src/openpose_lib-stamp/openpose_lib-build] Error 2
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/openpose_lib.dir/all' failed
make[1]: *** [CMakeFiles/openpose_lib.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Don't know why I get this error.
CMake Error: failed to create symbolic link '../../lib/libcaffe.so': operation not supported on socket
Any help would be appreciated. Thanks in advance.
There is probably some version issue of cmake, CUDA and cuDNN. Check for compatibility.

Grafana build docker image in MACOS?

I've made changes to grafana source code.
Ran e2e tests to make sure its working.
I work on MACOS
But when I tried to build a docker image from this, am afraid I don't understand how this works.
Ran this command make build-docker-full
output:
make build-docker-full
build docker container
docker build --tag grafana/grafana:dev .
Sending build context to Docker daemon 1.465GB
Step 1/44 : FROM golang:1.13.4-alpine
---> 3024b4e742b0
Step 2/44 : RUN apk add --no-cache gcc g++
---> Using cache
---> 0a34470e75af
Step 3/44 : WORKDIR $GOPATH/src/github.com/grafana/grafana
---> Using cache
---> 746e9a262b17
Step 4/44 : COPY go.mod go.sum ./
---> Using cache
---> 991f5eb4e93c
Step 5/44 : COPY vendor vendor
---> Using cache
---> 31461560264e
Step 6/44 : RUN go mod verify
---> Using cache
---> fb1ca8327171
Step 7/44 : COPY pkg pkg
---> 3766271f9d5a
Step 8/44 : COPY build.go package.json ./
---> 11ebcd1d9457
Step 9/44 : RUN go run build.go build
---> Running in aff10ee85d73
Version: 7.0.0-pre, Linux Version: 7.0.0, Package Iteration: 1584810976pre
rm -r ./bin/linux-amd64/grafana-server
rm -r ./bin/linux-amd64/grafana-server.md5
go version
go version go1.13.4 linux/amd64
Targeting linux/amd64
go build -ldflags -w -X main.version=7.0.0-pre -X main.commit=unknown-dev -X main.buildstamp=1584810976 -X main.buildBranch=master -mod=vendor -o ./bin/linux-amd64/grafana-server ./pkg/cmd/grafana-server
rm -r ./bin/linux-amd64/grafana-cli
rm -r ./bin/linux-amd64/grafana-cli.md5
go version
go version go1.13.4 linux/amd64
Targeting linux/amd64
go build -ldflags -w -X main.version=7.0.0-pre -X main.commit=unknown-dev -X main.buildstamp=1584811210 -X main.buildBranch=master -mod=vendor -o ./bin/linux-amd64/grafana-cli ./pkg/cmd/grafana-cli
Removing intermediate container aff10ee85d73
---> dd409b765652
Step 10/44 : FROM node:12.13.0-alpine
---> 69c8cc9212ec
Step 11/44 : RUN apk add --no-cache curl && cd /tmp && curl -Ls https://github.com/dustinblackman/phantomized/releases/download/2.1.1/dockerized-phantomjs.tar.gz | tar xz && cp -R lib lib64 / && cp -R usr/lib/x86_64-linux-gnu /usr/lib && cp -R usr/share /usr/share && cp -R etc/fonts /etc && curl -k -Ls https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 | tar -jxf - && cp phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
---> Using cache
---> f6e3c1365333
Step 12/44 : WORKDIR /usr/src/app/
---> Using cache
---> 68d834461a97
Step 13/44 : COPY package.json yarn.lock ./
---> d7e624ffddc4
Step 14/44 : COPY packages packages
---> dae5b06d3315
Step 15/44 : RUN yarn install --pure-lockfile --no-progress
---> Running in 0b6acb809b2e
yarn install v1.19.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info fsevents#1.2.9: The platform "linux" is incompatible with this module.
info "fsevents#1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#2.1.2: The platform "linux" is incompatible with this module.
info "fsevents#2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning "#grafana/slate-react > slate-react-placeholder#0.2.8" has unmet peer dependency "slate-react#>=0.22.0".
warning "workspace-aggregator-08c343d0-af45-4bd4-81c2-559647a82d7d > #grafana/data > rollup-plugin-visualizer#0.9.2" has incorrect peer dependency "rollup#>=0.60.0 <1".
warning "workspace-aggregator-08c343d0-af45-4bd4-81c2-559647a82d7d > #grafana/ui > #storybook/addon-docs#5.3.9" has unmet peer dependency "react-is#^16.8.0".
warning "workspace-aggregator-08c343d0-af45-4bd4-81c2-559647a82d7d > #grafana/ui > #storybook/addon-storysource#5.3.14" has unmet peer dependency "#storybook/source-loader#*".
warning "workspace-aggregator-08c343d0-af45-4bd4-81c2-559647a82d7d > #grafana/ui > storybook-dark-mode#0.3.0" has unmet peer dependency "#storybook/api#>= 5.x".
warning "workspace-aggregator-08c343d0-af45-4bd4-81c2-559647a82d7d > #grafana/ui > storybook-dark-mode#0.3.0" has unmet peer dependency "#storybook/addons#>= 5.x".
warning "workspace-aggregator-08c343d0-af45-4bd4-81c2-559647a82d7d > #grafana/ui > storybook-dark-mode#0.3.0" has unmet peer dependency "#storybook/components#>= 5.x".
warning "workspace-aggregator-08c343d0-af45-4bd4-81c2-559647a82d7d > #grafana/ui > storybook-dark-mode#0.3.0" has unmet peer dependency "#storybook/core-events#>= 5.x".
warning "workspace-aggregator-08c343d0-af45-4bd4-81c2-559647a82d7d > #grafana/ui > #storybook/addon-docs > #egoist/vue-to-react#1.1.0" has unmet peer dependency "vue#^2.6.10".
warning "workspace-aggregator-08c343d0-af45-4bd4-81c2-559647a82d7d > #grafana/ui > #storybook/addon-actions > react-inspector > storybook-chromatic#2.2.2" has unmet peer dependency "#storybook/core#3.* || 4.* || 5.*".
[5/5] Building fresh packages...
Done in 1729.76s.
And I left this overnight;
The process didn't finish, so I interrupted.
^Cmake: *** [build-docker-full] Interrupt: 2
Can any one help me build this.??
I want to know, where the image is built and how I could pull this image.
My current guess is it will directly push this image to my dockerhub repo as grafana:dev.
Thank you.

How can I update from firebase-admin#5.12.0 to firebase-admin#6.0.0?

1.
D:\Firebase>npm install firebase-functions#latest firebase-admin#latest --save
firebase-functions#2.0.5 postinstall D:\Firebase\node_modules\firebase-functions
node ./upgrade-warning
======== WARNING! ========
This upgrade of firebase-functions contains breaking changes if you are upgrading from a version below v1.0.0.
To see a complete list of these breaking changes, please go to:
https://firebase.google.com/docs/functions/beta-v1-diff
npm WARN saveError ENOENT: no such file or directory, open 'D:\Firebase\package.json'
- mime-db#1.35.0 node_modules\compressible\node_modules\mime-db
- mime-db#1.35.0 node_modules\request\node_modules\mime-db
- mime-types#2.1.19 node_modules\request\node_modules\mime-types
D:\Firebase
+-- firebase-admin#6.0.0
| +-- #google-cloud/storage#1.7.0
| | +-- compressible#2.0.14
| | | `-- mime-db#1.35.0
| | `-- mime-types#2.1.19
| `-- #types/node#8.10.26
`-- firebase-functions#2.0.5
npm WARN enoent ENOENT: no such file or directory, open 'D:\Firebase\package.json'
npm WARN Firebase No description
npm WARN Firebase No repository field.
npm WARN Firebase No README data
npm WARN Firebase No license field.
D:\Firebase\functions>npm install --save firebase-functions#latest
firebase-functions#2.0.5 postinstall D:\Firebase\functions\node_modules\firebase-functions
node ./upgrade-warning
======== WARNING! ========
This upgrade of firebase-functions contains breaking changes if you are upgrading from a version below v1.0.0.
To see a complete list of these breaking changes, please go to:
https://firebase.google.com/docs/functions/beta-v1-diff
functions# D:\Firebase\functions
+-- UNMET PEER DEPENDENCY firebase-admin#5.12.0
`-- firebase-functions#2.0.5
npm WARN firebase-functions#2.0.5 requires a peer of firebase-admin#~6.0.0 but none was installed.
~
I check "package.json"
"dependencies": {
"firebase-admin": "~5.12.0",
"firebase-functions": "^2.0.5"
},
How can I update from firebase-admin#5.12.0 to firebase-admin#6.0.0 ?
Thanks very much.
To get the latest version of any npm module for your Cloud Functions project:
cd functions
npm install firebase-admin#latest
In my case, I kept running npm install and npm install firebase-admin#latest (as suggested in the warning message itself) under /[project]/functions and getting the same warning.
I realized I had forgotten to run this update:
npm install --save firebase-functions#latest

error updating to meteor 1.3.4.4

Meteor instructed to do meteor update from 1.3.4.3 to update to 1.3.4.4 and after I did that, I got the following errors.
Not sure what to do at this point, any idea? Thanks
$meteor update
=> Errors
while initializing project:
While loading package fourseven: scss# 3.3.3_3:
error: Command failed:
module.js: 340
throw err; ^
Error: Cannot find module '../'
at Function.Module._resolveFilename(module.js: 338: 15)
at Function.Module._load(module.js: 280: 25)
at Module.require(module.js: 364: 17)
at require(module.js: 380: 17)
at Object. < anonymous >
(/Users/empl1 / .meteor / packages / fourseven_scss / .3.3.3_3.ecnkm4++os.osx.x86_64 + web.browser + web.cordova / plugin.compileScssBatch.os.osx.x86_64 / npm / node_modules / meteor / compileScssBatch / compileScssBatch / node_modules / .temp - 1dptekz / node_modules / node - sass / node_modules / cross - spawn / node_modules / spawn - sync / node_modules /
try -thread - sleep / node_modules / thread - sleep / node_modules / .bin / node - pre - gyp: 15: 20)
at Module._compile(module.js: 456: 26)
at Object.Module._extensions..js(module.js: 474: 10)
at Module.load(module.js: 356: 32)
at Function.Module._load(module.js: 312: 12)
at Function.Module.runMain(module.js: 497: 10)
npm ERR!Darwin 15.5.0
npm ERR!argv "node"
"/Users/empl1/.meteor/packages/meteor-tool/.1.3.5_1.hzx8lp++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm"
"rebuild"
"--no-bin-links"
"--update-binary"
npm ERR!node v0.10.46
npm ERR!npm v3.10.5
npm ERR!code ELIFECYCLE
npm ERR!thread - sleep# 1.0.4 install: `node-pre-gyp install
--fallback-to-build`
npm ERR!Exit status 8
npm ERR!
npm ERR!Failed at the thread - sleep# 1.0.4 install script 'node-pre-gyp
install --fallback-to-build'.
npm ERR!Make sure you have the latest version of node.js and npm
installed.
npm ERR!If you do,
this is most likely a problem with the
thread - sleep package,
npm ERR!not with npm itself.
npm ERR!Tell the author that this fails on your system:
npm ERR!node - pre - gyp install--fallback - to - build
npm ERR!You can get information on how to open an issue
for this
project with:
npm ERR!npm bugs thread - sleep
npm ERR!Or
if that isn 't available, you can get their info via:
npm ERR! npm owner ls thread-sleep
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!
/Users/empl1/.meteor/packages/fourseven_scss/.3.3.3_3.ecnkm4++os.osx.x86_64+web.browser+web.cordova/plugin.compileScssBatch.os.osx.x86_64/npm/node_modules/meteor/compileScssBatch/compileScssBatch/node_modules/.temp-1dptekz/npm-debug.log
module.js:340
throw err;
^
Error: Cannot find module '.. / '
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous>
(/Users/empl1/.meteor/packages/fourseven_scss/.3.3.3_3.ecnkm4++os.osx.x86_64+web.browser+web.cordova/plugin.compileScssBatch.os.osx.x86_64/npm/node_modules/meteor/compileScssBatch/compileScssBatch/node_modules/.temp-1dptekz/node_modules/node-sass/node_modules/cross-spawn/node_modules/spawn-sync/node_modules/try-thread-sleep/node_modules/thread-sleep/node_modules/.bin/node-pre-gyp:15:20)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
npm ERR! Darwin 15.5.0
npm ERR! argv "node"
"/Users/empl1/.meteor/packages/meteor-tool/.1.3.5_1.hzx8lp++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm"
"rebuild" "--no-bin-links" "--update-binary"
npm ERR! node v0.10.46
npm ERR! npm v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! thread-sleep#1.0.4 install: `node-pre-gyp install
--fallback-to-build`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the thread-sleep#1.0.4 install script '
node - pre - gyp
install--fallback - to - build '.
npm ERR! Make sure you have the latest version of node.js and npm
installed.
npm ERR! If you do, this is most likely a problem with the
thread-sleep package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this
project with:
npm ERR! npm bugs thread-sleep
npm ERR! Or if that isn'
t available, you can get their info via:
npm ERR!npm owner ls thread - sleep
npm ERR!There is likely additional logging output above.
npm ERR!Please include the following file with any support request:
npm ERR!
/Users/empl1 / .meteor / packages / fourseven_scss / .3.3.3_3.ecnkm4++os.osx.x86_64 + web.browser + web.cordova / plugin.compileScssBatch.os.osx.x86_64 / npm / node_modules / meteor / compileScssBatch / compileScssBatch / node_modules / .temp - 1dptekz / npm - debug.log
This might be related to a magration from a lesser version of Meteor 1.2 to a 1.3+.
Warnings are related to this package:meteor-scss
On its documentation it recommends to do the following for 1.3+ versions.
meteor remove standard-minifier-css
meteor add seba:minifiers-autoprefixer
If that does'nt work it also talks about locking a version for specific Meteor Versions
Note: Due to same changes between Meteor 1.3.0-1.3.1 and Meteor 1.3.2+, Users of Meteor 1.3.0 or 1.3.1 are advised to use version 3.4.2 of fourseven:scss
You can do this inside ./meteor/versions folder.

Resources