gitbook-cli
gitbook-cli copied to clipboard
Error installing
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
Hi, Have you fixed it?
Nope. Although I did not tested it since.
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.
deleted files gitbook and gitbook.cmd under the folder npm .then try again npm install -g gitbook-cli