error when installing npm dependency

0

I'm trying to install this dependency:

npm install mysqljs/mysql 

But I get an error loading it

npm ERR! code 1
npm ERR! Command failed: D:\Program Files\Git\mingw64\bin\git.EXE submodule update -q --init --recursive
npm ERR! fatal: D:\Program Files\Git\mingw64/libexec/git-core\git-submodule cannot be used without a working tree.
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Hansel\AppData\Roaming\npm-cache\_logs18-10-17T23_56_28_204Z-debug.log

The complete log is:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli   'C:\Users\Hansel\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   'mysqljs/mysql',
1 verbose cli   '--save' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 68c2148226eda3be
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData error for github:mysqljs/mysql Command failed: D:\Program Files\Git\mingw64\bin\git.EXE submodule update -q --init --recursive
7 silly fetchPackageMetaData fatal: D:\Program Files\Git\mingw64/libexec/git-core\git-submodule cannot be used without a working tree.
8 timing stage:rollbackFailedOptional Completed in 1ms
9 timing stage:runTopLevelLifecycles Completed in 3841ms
10 verbose stack Error: Command failed: D:\Program Files\Git\mingw64\bin\git.EXE submodule update -q --init --recursive
10 verbose stack fatal: D:\Program Files\Git\mingw64/libexec/git-core\git-submodule cannot be used without a working tree.
10 verbose stack
10 verbose stack     at ChildProcess.exithandler (child_process.js:275:12)
10 verbose stack     at emitTwo (events.js:126:13)
10 verbose stack     at ChildProcess.emit (events.js:214:7)
10 verbose stack     at maybeClose (internal/child_process.js:925:16)
10 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
11 verbose cwd E:\DesarrolloWeb\RavenInk\BackRavenInk
12 verbose Windows_NT 10.0.17134
13 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\Hansel\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "mysqljs/mysql" "--save"
14 verbose node v8.11.1
15 verbose npm  v6.4.1
16 error code 1
17 error Command failed: D:\Program Files\Git\mingw64\bin\git.EXE submodule update -q --init --recursive
17 error fatal: D:\Program Files\Git\mingw64/libexec/git-core\git-submodule cannot be used without a working tree.
18 verbose exit [ 1, true ]

What do you think it could be?

Thanks and regards!

    
asked by HanselDoullery 18.10.2018 в 02:03
source

0 answers