2016-07-26 3 views
0

를 설치할 수 없습니다 : 오후이물 내가 루트로이 명령을 실행할 때 무슨 일이 생긴하는 NPM하지만 아무것도를 통해 정자를 설치하기 위해 노력하고있어 의존성

where <command> is one of: 
    access, adduser, bin, bugs, c, cache, completion, config, 
    ddp, dedupe, deprecate, dist-tag, docs, edit, explore, get, 
    help, help-search, i, init, install, install-test, it, link, 
    list, ln, logout, ls, outdated, owner, pack, ping, prefix, 
    prune, publish, rb, rebuild, repo, restart, root, run, 
    run-script, s, se, search, set, shrinkwrap, star, stars, 
    start, stop, t, tag, team, test, tst, un, uninstall, 
    unpublish, unstar, up, update, v, version, view, whoami 

npm <cmd> -h  quick help on <cmd> 
npm -l   display full usage info 
npm help <term> search for help on <term> 
npm help npm  involved overview 

Specify configs in the ini-formatted file: 
    /home/achraf/.npmrc 
or on the command line via: npm <command> --key value 
Config info can be viewed via: npm help config 

[email protected] /usr/lib/node_modules/npm 

어떤 아이디어가 있습니까?

답변

1

이것은 : npm install -g bower입니다. 귀하의 경우에는 sudo으로 시작하실 수 있습니다.

편집 : 옵션으로 bower를 사용하여 'install'을 실행하지 않고 npm 명령 ('bower'는 npm 명령이 아님)으로 'bower'를 실행하려고하기 때문에 npm 출력이 표시되는 이유 .

bower.json에서 종속성을 설치하려면 프로젝트 폴더로 이동하여 bower install을 실행하십시오.

+0

@Bobox - 선택 답변으로 '확인'하십시오. (: – CryptoPiggy

+0

이미 동일한 메시지를 sudo로 사용하고 있습니다. – Bobox

+0

네, 명령이 내 것과 다르다 : sudo npm install -g bower' (복사하여 붙여 넣기) – CryptoPiggy