2016-12-12 4 views
0

로컬 서버에 스텐실을 설치했습니다. 어떤 도움을 주시면 감사오류 : 로컬 서버의 스텐실에서 'commander'모듈을 찾을 수 없습니다.

Error: Cannot find module 'commander' 
    at Function.Module._resolveFilename (module.js:469:15) 
    at Function.Module._load (module.js:417:25) 
    at Module.require (module.js:497:17) 
    at require (internal/module.js:20:19) 
    at Object.<anonymous> (C:\Users\payal\AppData\Roaming\npm\node_modules\@bigcommerce\stencil-cli\bin\stencil:3:15) 
    at Module._compile (module.js:570:32) 
    at Object.Module._extensions..js (module.js:579:10) 
    at Module.load (module.js:487:32) 
    at tryModuleLoad (module.js:446:12) 
    at Function.Module._load (module.js:438:3) 

: 나는 stencil init 명령을 실행할 때이 오류를 얻고있다.

답변

0

이 오류는 일반적으로 노드 버전 문제를 나타냅니다. 노드 4.4.5로 변경하고 스텐실을 다시 설치하십시오. NVM을 사용하여 내 컴퓨터에서 Node의 여러 버전을 관리합니다 (매력처럼 작동 함).