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!
모든 단서를위한 다음과 같은 출력을 가지고?
로컬 설치를 위해 공유 한 단계를 수행했지만 오류가 발생했습니다. 내 게시물 자체에 오류 로그를 추가했습니다. 서식 섹션이 주석 섹션에 적합하지 않습니다. – comiventor
npm을 사용하면 과장을 설치할 수 있습니까? --save-dev? –
제안대로 sudo를 사용하지 않고 시도했지만 오류나 경고없이 실행되었지만 여전히 Npm 모듈 "grunt-cli"를 찾을 수 없습니다. 설치되어 있습니까? grunt-cli를 요구하는 응용 프로그램을 실행할 때마다 – comiventor