GitbookIO / gitbook-cli

GitBook's command line interface
716 stars 217 forks source link

Error installing #85

Open Serhioromano opened 6 years ago

Serhioromano commented 6 years ago

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

fujunguo commented 6 years ago

Hi, Have you fixed it?

Serhioromano commented 6 years ago

Nope. Although I did not tested it since.

UltimateFishbot commented 6 years ago

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.

carity commented 4 years ago

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