如何解决如何在linux上安装npm命令
我正在尝试在 Linux 上安装 npm ci
命令。它不起作用。显示以下提示。有人能帮我解决这个问题吗?
ubuntu@ip-172-31-25-55:~/aws$ npm cl
Usage: npm <command>
where <command> is one of:
access,add-user,adduser,apihelp,author,bin,bugs,c,cache,completion,config,ddp,dedupe,deprecate,dist-tag,dist-tags,docs,edit,explore,faq,find,find-dupes,get,help,help-search,home,i,info,init,install,install-test,issues,it,la,link,list,ll,ln,login,logout,ls,outdated,owner,pack,ping,prefix,prune,publish,r,rb,rebuild,remove,repo,restart,rm,root,run-script,s,se,search,set,show,shrinkwrap,star,stars,start,stop,t,tag,team,test,tst,un,uninstall,unlink,unpublish,unstar,up,update,upgrade,v,verison,version,view,whoami
npm <cmd> -h quick help on <cmd>
npm -l display full usage info
npm faq commonly asked questions
npm help <term> search for help on <term>
npm help npm involved overview
Specify configs in the ini-formatted file:
/home/ubuntu/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config
npm@3.5.2 /usr/share/npm```
解决方法
您应该能够通过运行这些命令来安装 NPM。
>>> df["board"].str.cat(df["counts"].astype(str),sep=" ") \
.groupby(df["principal_investigator"]) \
.apply(",".join) \
.to_frame("board_counts")
board_counts
principal_investigator
Buzz Lightyear CREB 2
Maggie Thatcher CWEB 3,BCCA 1
Seamus Heaney CREB 1
Tiger Woods CREB 2,BCCA 1
那么:
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
检查是否安装:
sudo apt install nodejs
如果它输出一个版本号,你就很好!
,npm ci
至少需要 npm v5.7.0 并且您有 v3.5.2
,因此您需要先升级您的 npm
。
那么:npm ci
不是 npm cl
!
小提示:你不能安装命令。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。