Running npx npm/tink fails


(Giovanni Bassi) #1

Following the tink announcement (from when it was still crux), I am trying to run it, and I get the same error on Linux and Windows:

error: pathspec 'master' did not match any file(s) known to git.

On Linux the error is:

Command failed: /usr/bin/git checkout master

On Windows it is:

Command failed: C:\Program Files\Git\cmd\git.EXE checkout master

To fix it I tried creating a git repo, and commiting to it. I still get the error.
I can manually checkout master with git.

Full log is:

0 info it worked if it ends with ok
1 verbose cli [ '/home/giggio/.nvm/versions/node/v10.4.0/bin/node',
1 verbose cli   '/home/giggio/.nvm/versions/node/v10.4.0/lib/node_modules/npx/node_modules/npm/bin/npm-cli.js',
1 verbose cli   'install',
1 verbose cli   'github:npm/tink',
1 verbose cli   '--global',
1 verbose cli   '--prefix',
1 verbose cli   '/home/giggio/.npm/_npx/1563',
1 verbose cli   '--loglevel',
1 verbose cli   'error',
1 verbose cli   '--json' ]
2 info using npm@5.1.0
3 info using node@v10.4.0
4 verbose npm-session c8f194243e7f142a
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData error for github:npm/tink Command failed: /usr/bin/git checkout master
7 silly fetchPackageMetaData error: pathspec 'master' did not match any file(s) known to git.
8 verbose stack Error: Command failed: /usr/bin/git checkout master
8 verbose stack error: pathspec 'master' did not match any file(s) known to git.
8 verbose stack
8 verbose stack     at ChildProcess.exithandler (child_process.js:291:12)
8 verbose stack     at ChildProcess.emit (events.js:182:13)
8 verbose stack     at maybeClose (internal/child_process.js:961:16)
8 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
9 verbose cwd /home/giggio/p/rabiscos/testecrux
10 verbose Linux 4.4.0-17134-Microsoft
11 verbose argv "/home/giggio/.nvm/versions/node/v10.4.0/bin/node" "/home/giggio/.nvm/versions/node/v10.4.0/lib/node_modules/npx/node_modules/npm/bin/npm-cli.js" "install" "github:npm/tink" "--global" "--prefix" "/home/giggio/.npm/_npx/1563" "--loglevel" "error" "--json"
12 verbose node v10.4.0
13 verbose npm  v5.1.0
14 error code 1
15 error Command failed: /usr/bin/git checkout master
15 error error: pathspec 'master' did not match any file(s) known to git.
16 verbose exit [ 1, true ]

(system) #2

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.