gitbook-cli icon indicating copy to clipboard operation
gitbook-cli copied to clipboard

Error installing

Open Serhioromano opened this issue 7 years ago • 4 comments

Windows 7

PS C:\Users\Serhioromano> npm -v
5.6.0
PS C:\Users\Serhioromano> node -v
v8.10.0

Error

PS C:\Users\Serhioromano> npm install -g gitbook-cli
npm ERR! path C:\Users\Serhioromano\AppData\Roaming\npm\node_modules\gitbook-cli\node_modules\npmi\node_modules\npm\node
_modules\ansistyles
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Serhioromano\AppData\Roaming\npm\node_modules\gitboo
k-cli\node_modules\npmi\node_modules\npm\node_modules\ansistyles' -> 'C:\Users\Serhioromano\AppData\Roaming\npm\node_mod
ules\gitbook-cli\node_modules\npmi\node_modules\npm\node_modules\.ansistyles.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Serhioromano\AppData\Roaming\npm-cache\_logs\2018-07-02T05_10_11_491Z-debug.log

Here is the log

2018-07-02T05_10_11_491Z-debug.log

Serhioromano avatar Jul 02 '18 05:07 Serhioromano

Hi, Have you fixed it?

fujunguo avatar Jul 19 '18 02:07 fujunguo

Nope. Although I did not tested it since.

Serhioromano avatar Jul 19 '18 10:07 Serhioromano

I am experiencing same issue:

npm 5.6.0 node v8.11.1

On Windows 10

However, I don't believe it is related to Gitbook. I was able to resolve this by upgrading my version of npm to 6.3.0, deleting the /node_modules/ folder created and attempting it again.

UltimateFishbot avatar Aug 08 '18 14:08 UltimateFishbot

deleted files gitbook and gitbook.cmd under the folder npm .then try again npm install -g gitbook-cli

carity avatar Jan 09 '20 08:01 carity