Node.js 无法安装js美化

Node.js 无法安装js美化,node.js,js-beautify,Node.js,Js Beautify,无法安装js beautify,这里发生了什么。不知道为什么会失败,有人能帮忙吗 nvm Node Version Manager Usage: nvm help Show this message nvm install [-s] <version> Download and install a <version> nvm uninstall <version> Uninstall

无法安装js beautify,这里发生了什么。不知道为什么会失败,有人能帮忙吗

nvm

Node Version Manager

Usage:
    nvm help                    Show this message
    nvm install [-s] <version>  Download and install a <version>
    nvm uninstall <version>     Uninstall a version
    nvm use <version>           Modify PATH to use <version>
    nvm run <version> [<args>]  Run <version> with <args> as arguments
    nvm ls                      List installed versions
    nvm ls <version>            List versions matching a given description
    nvm ls-remote               List remote versions available for install
    nvm deactivate              Undo effects of NVM on current shell
    nvm alias [<pattern>]       Show all aliases beginning with <pattern>
    nvm alias <name> <version>  Set an alias named <name> pointing to <version>
    nvm unalias <name>          Deletes the alias named <name>
    nvm copy-packages <version> Install global NPM packages contained in <version> to current version

Example:
    nvm install v0.4.12         Install a specific version number
    nvm use 0.2                 Use the latest available 0.2.x release
    nvm run 0.4.12 myApp.js     Run myApp.js using node v0.4.12
    nvm alias default 0.4       Auto use the latest installed v0.4.x version

nvm
是一个节点版本管理器
npm
是节点包管理器

您应该使用
npm
安装软件包

npm install js-beautify

nvm
是一个节点版本管理器
npm
是节点包管理器

您应该使用
npm
安装软件包

npm install js-beautify

@真的吗?他使用了错误的命令。看阿尔贝托的回答。@ShivanRaptor真的吗?他使用了错误的命令。见阿尔贝托的答案。