2016-10-20 2 views
1

grunt-cli를 로컬 및 전역으로 설치했으며 로컬 및 글로벌 경로 모두에서 동일한 것을 볼 수 있습니다. 출력의 일부 설치가 작동하는지 나는 툴툴 거리는 소리 -v를 실행하면이grunt-cli 설치 문제

>> Local Npm module "grunt-cli" not found. Is it installed? 

    Grunt: The JavaScript Task Runner (v0.4.5) 

    Usage 
    grunt [options] [task [task ...]] 

    Options 
    --help, -h Display this help text. 
    --base Specify ....... 

을 다음 보여줍니다

grunt -h 

을 실행하려고 할 때

은 다음, 테스트하는 것입니다

Registering "grunt-cli" local Npm module tasks. 
Reading /Users/cominventor/myproject/node_modules/grunt-cli/package.json...OK 
Parsing /Users/cominventor/myproject/node_modules/grunt-cli/package.json...OK 
>> Local Npm module "grunt-cli" not found. Is it installed? 

로컬로 설치하려면 다음 명령을 실행하십시오 (@Aruna가 권장)

npm install grunt --save-dev 
npm install grunt-cli --save-dev 

와 내가 여기 실종 어떤 두 번째 명령

npm ERR! Darwin 16.0.0 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "grunt-cli" "--save-dev" 
npm ERR! node v6.6.0 
npm ERR! npm v3.10.7 
npm ERR! code ENOSELF 

npm ERR! Refusing to install grunt-cli as a dependency of itself 
npm ERR! 

모든 단서를위한 다음과 같은 출력을 가지고?

답변

1

어떻게 설치 했습니까?

는 글로벌 아래와 같이 모두 글로벌 및 로컬 모듈,

를 시도

npm install -g grunt-cli 

내가 같은 질문을 발견하고, 내가 이것을 사용하여 해결

npm install grunt --save-dev 
npm install grunt-cli --save-dev 
+0

로컬 설치를 위해 공유 한 단계를 수행했지만 오류가 발생했습니다. 내 게시물 자체에 오류 로그를 추가했습니다. 서식 섹션이 주석 섹션에 적합하지 않습니다. – comiventor

+0

npm을 사용하면 과장을 설치할 수 있습니까? --save-dev? –

+0

제안대로 sudo를 사용하지 않고 시도했지만 오류나 경고없이 실행되었지만 여전히 Npm 모듈 "grunt-cli"를 찾을 수 없습니다. 설치되어 있습니까? grunt-cli를 요구하는 응용 프로그램을 실행할 때마다 – comiventor

-1

지역 명령 :

grunt -f 

그것은 저에게 효과적입니다.

+0

이것은 질문에 실제로 대답하지 않습니다. 다른 질문이있는 경우 [질문하기] (https://stackoverflow.com/questions/ask)를 클릭하여 질문 할 수 있습니다. [평판] (https://stackoverflow.com/help/privileges/set-bounties)을 충분히 확보하면 [현상금 추가] (https://stackoverflow.com/help/privileges/set-bounties)를 통해이 질문에 더 집중할 수 있습니다. 평판).- [리뷰에서] (리뷰/저품절 게시물/18983551) –