maxlath / wikibase-cli

read and edit a Wikibase instance from the command line
MIT License
226 stars 24 forks source link

Error running postinstall script nvm #64

Closed ruthtillman closed 5 years ago

ruthtillman commented 5 years ago

When I attempt to install with NVM, I get the following issue:

> wikidata-cli@7.0.2 postinstall C:\Users\rkt6\AppData\Roaming\npm\node_modules\wikidata-cli
> ./scripts/postinstall

'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! wikidata-cli@7.0.2 postinstall: `./scripts/postinstall`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the wikidata-cli@7.0.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\rkt6\AppData\Roaming\npm-cache\_logs\2018-11-29T16_18_09_233Z-debug.log

This is my work Windows 10 computer, but I had the exact same postinstall script issue on my personal computer running Linux Mint 18.3.

ruthtillman commented 5 years ago

Updated Mint to 19.0 and no longer experiencing it. Unsure whether this should then be closed, but open to it.

maxlath commented 5 years ago

it looks like @belett ran into the same error

C:\>npm install -g wikidata-cli
C:\Users\VIGNERON\AppData\Roaming\npm\wd -> C:\Users\VIGNERON\AppData\Roaming\npm\node_modules\wikidata-cli\bin\wd

> wikidata-cli@7.0.2 postinstall C:\Users\VIGNERON\AppData\Roaming\npm\node_modules\wikidata-cli
> ./scripts/postinstall

'.' n’est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! wikidata-cli@7.0.2 postinstall: `./scripts/postinstall`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the wikidata-cli@7.0.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\VIGNERON\AppData\Roaming\npm-cache\_logs\2018-12-03T17_07_10_748Z-debug.log

not sure were that can come from :/

belett commented 5 years ago

For the context, this happened on Windows 10 too but it works fine on Linux Ubuntu.

ruthtillman commented 5 years ago

I should add I was also using the git bash (MING) as admin on my work computer because while Windows has an ubuntu command line now, I don't have access to it. But I can run git bash as admin.

maxlath commented 5 years ago

in absence of other reports since c1d7e69, I assume this was fixed, but feel welcome to reopen it if the problem occurs again