2017-11-08 11 views
0

latex-sketch-plugin 설치 중에 오류가 발생했습니다. 이 플러그인을 설치하는 방법에 대한 완전한 아이디어가 없지만 필자도 수학 공식을 작성해야하는 다이어그램을 만들어야하므로 필자의 논문을 위해 필자에게 필요하다. 그러니까 기본적으로, 나는 노드 패키지 관리자npm run watch 실행 중 latex-sketch-plugin 설치 중 오류가 발생했습니다.

[email protected]:~$ npm -v 
5.4.2 

을하고 난에 git clone를 사용하여 latex-sketch-plugin의 repo를 복제 스케치 플러그인 폴더 즉 ~/Library/Application Support/com.bohemiancoding.sketch3/Plugins

내가 npm run watch을 실행할 때 그러나 나는 다음과 같은 오류를 얻을

[email protected]:~$ npm run watch 
    npm ERR! path /Users/amar/package.json 
    npm ERR! code ENOENT 
    npm ERR! errno -2 
    npm ERR! syscall open 
    npm ERR! enoent ENOENT: no such file or directory, open '/Users/amar/package.json' 
    npm ERR! enoent This is related to npm not being able to find a file. 
    npm ERR! enoent 

    npm ERR! A complete log of this run can be found in: 
    npm ERR!  /Users/amar/.npm/_logs/2017-11-08T04_14_49_190Z-debug.log 

답변

1

오류 메시지는 /Users/amar/package.json을 찾을 수 없다고 말합니다./Users/amar 폴더에서 npm 명령을 실행 한 것 같습니다. 프로젝트를 복제 한 폴더에서 실행하십시오. npm이 package.json을 찾을 수 있습니다.