简体   繁体   English

在Ubuntu上使用Node / Npm安装JSL或JSlint

[英]Install JSL or JSlint with Node/Npm on Ubuntu

How do I install jsl-0.3.0 on ubuntu 11.10? 如何在ubuntu 11.10上安装jsl-0.3.0?

I have downloaded the tarball from JSL . 我已经从JSL下载了tarball。 However there isn't a configure script or autogen.sh to enable to build it from source. 但是,没有配置脚本或autogen.sh可以从源代码构建它。

Tried using npm to install it but it was unsuccessful as it could extract the tarball. 尝试使用npm安装它,但未成功,因为它可以解压缩tarball。

sayth@sayth-TravelMate-5740G:~/jsl-0.3.0/src$ sudo npm install ~/Downloads/jsl-0.3.0-   src.tar.gz -g
npm ERR! couldn't unpack /tmp/npm-1324904212208/1324904212208-0.02443970972672105/tmp.tgz to /tmp/npm-1324904212208/1324904212208-0.02443970972672105/contents

I previously tried installing jslint via npm but that failed also. 我之前曾尝试通过npm安装jslint,但是那也失败了。

sayth@sayth-TravelMate-5740G:~/jsl-0.3.0/src$ sudo npm install jslint -g
npm ERR! error installing jslint@0.1.2 Error: Refusing to delete: /usr/local/bin/jslint not in /usr/local/lib/node_modules/jslint

I installed node and npm via the script at http://apptob.org/ . 我通过位于http://apptob.org/的脚本安装了node和npm。 This installed node 0.6.5 and I have now updated it to 0.6.6 in an attempt to correct these errors. 此安装的节点为0.6.5,现在我将其更新为0.6.6,以尝试纠正这些错误。

Could anyone provide a suggestion on how I could get this working? 任何人都可以对我如何使它工作提出建议吗?

Have you tried install nodeJS from the website, that will also install npm. 您是否尝试过从网站上安装nodeJS,它也会安装npm。 Once both are installed, you may simply run npm install jslint . 两者都安装后,您只需运行npm install jslint

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM