2014-10-12 1 views
2

내가 명령 줄에서 "-g 브런치를 설치 NPM"입력하여 브런치를 설치하려고 할 때마다 설치할 때, 나는 다음과 같은 오류 메시지가 얻을 :오류 메시지 세계적으로 브런치를

> [email protected] install /usr/local/share/npm/lib/node_modules/brunch/node_modules/chokidar/node_modules/fsevents 
> node-gyp rebuild 

    CXX(target) Release/obj.target/fse/fsevents.o 


In file included from ../fsevents.cc:86: 
../src/constants.cc:10:66: warning: template argument uses unnamed type [-Wunnamed-type-template-args] 
    object->Set(NanNew<v8::String>("kFSEventStreamEventFlagNone"), NanNew<v8::Integer>(kFSEventStreamEvent... 

                   ^~~~~~ 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/FSEvents.h:290:1: note: 
     unnamed type used in template argument was declared here 
enum { 
^ 


1 warning generated. 

     SOLINK_MODULE(target) Release/fse.node 
     SOLINK_MODULE(target) Release/fse.node: Finished 
/usr/local/share/npm/bin/brunch -> /usr/local/share/npm/lib/node_modules/brunch/bin/brunch 
[email protected] /usr/local/share/npm/lib/node_modules/brunch 


├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] ([email protected]) 
├── [email protected] ([email protected], [email protected], [email protected]) 
├── [email protected] ([email protected]) 
├── [email protected] 
├── [email protected] ([email protected]) 
├── [email protected] ([email protected]) 
├── [email protected] ([email protected], [email protected]) 
└── [email protected] ([email protected], [email protected]) 
+0

경고 일뿐 오류는 아닙니다. – Scimonster

+0

소스를 찾을 수 없습니다 (어딘가에 있습니다)하지만 npm 권한을 변경하여 문제를 해결할 수 있습니다. – xShirase

+0

npm 권한을 어떻게 변경합니까? – elenawalom

답변

0

나는이 때 인쇄가를 나는 npm install -g brunch을하지만 나를 위해 설치가되지 않습니다.

NPM은 무언가가 성공적으로 설치되었을 때만 종속성 트리를 인쇄하므로 사용자를 위해 설치되는 것처럼 보입니다.

brunch를 실행하면 당신이 지금

Usage: brunch [command] [options] 

    Commands: 

    new [skeleton] [path] Create new brunch project in path [.]. Short-cut: n 
    build [options]  Build a brunch project. Short-cut: b 
    watch [options]  Watch brunch directory and rebuild if something changed. Short-cut: w 

    Options: 

    -h, --help  output usage information 
    -V, --version output the version number 

에게 제공해야합니다. 그렇지 않은 경우

이 중 하나에 해당 :

  • 당신의 쉘의 경로에 대해 알고하지 않습니다 설치 brunch 진;
  • 나는 틀렸고 어떤 이유로 든 설치되지 않았다.

제 경우에는 brunch 바이너리가 /usr/local/bin/brunch으로 설치되었습니다. 내가 N을 사용하고 있기 때문에 당신과 다를 수 있습니다. 사용 권한 문제를 피하고 노드 버전을 전환 할 수 있도록 사용하는 것이 좋습니다.

N을 설정하고 다시 시도해보십시오. 어쩌면 문제가 사라지고 그럴 것입니다.