, I'll talk about how to fix this later, The reason for this mistake, Because gitbook 3.2.3 The version of nodejs 14.16.1 Are not compatible, It is said that nodejs Downgrade to 10.23.0, I'm not going to verify it here. There will be an error, But it doesn't matter. Gitbook -V // The query again gitbook-cli Version of Notice that this is capital V Then it will automatically trigger gitbook 3.2.3 Installation The right way to install ln -s /root/node-v14.16.1-linux-圆4/bin/gitbook /usr/bin/gitbook // Set up gitbook-cli The soft links Npm install -g gitbook-cli // -g For global installation optionsĪfter installation, you can see that there is one more in the current directory gitbook file gitbook-cli Start the installation after the installation is complete gitbook, These are two different things, Then some posts on the Internet said that they were going to execute npm install -g gitbook //error Will report a mistakeīut it doesn't actually work Guess it's some libraries and the current nodejs Version incompatible The installation here is actually /usr/bin There are two soft links to download the good nodejs The installation files, because /usr/bin The directory is already the binary execution directory of the system default environment variable, So you don't need to modify the environment variables any more shell Execute. ![]() ![]() ![]() Ln -s /home/ Login name /node-v14.16.1-linux-圆4/bin/npm /usr/bin/npm Ln -s /home/ Login name /node-v14.16.1-linux-圆4/bin/node /usr/bin/node
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |