首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装js-beautify

无法安装js-beautify
EN

Stack Overflow用户
提问于 2013-07-22 18:22:39
回答 1查看 1K关注 0票数 0

无法安装js-beautify,这是怎么回事。不确定为什么它在这里失败,有人可以帮助吗?

代码语言:javascript
复制
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

我们就是这样安装js-beautify的。

代码语言:javascript
复制
jeff@paris:~$ nvm install js-beautify
Warning: Failed to create the file 
Warning: /home/jeff/.nvm/bin/node-N/A-linux-x64/node-N/A-linux-x64.tar.gz: 
Warning: No such file or directory
######################################################################## 100.0%
curl: (23) Failed writing body (0 != 162)
Binary download failed, trying source.
Additional options while compiling: 
nvm: install N/A failed!
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-07-22 18:25:31

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

您应该使用npm来安装软件包

代码语言:javascript
复制
npm install js-beautify
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17785114

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档