경로를 제공할 때 미모사와 함께 durandal 템플릿을 설치하는 것이 중단되는 것 같습니다.

StackOverflow https://stackoverflow.com//questions/21053251

  •  22-12-2019
  •  | 
  •  

문제

노드, 미모사, 듀란달 뉴비.나는 듀란달의 미모사 뼈대를 창문에 설치하려고 합니다. 듀란달 웹사이트.이 명령을 실행합니다:

mimosa skel:new durandal "C:\Users\Anthony\node projects\typelearn"

(경로에 창과 공백이 있기 때문에 인용) 템플릿 설치 위치에 대한 잘못된 경로와 함께 다음 오류가 발생합니다.

C:\Users\Anthony>mimosa skel:new durandal "C:\Users\Anthony\node projects\typele
arn"
13:16:11 - Retrieving registry...
13:16:11 - Found skeleton in registry
13:16:11 - Cloning GitHub repo [[ git://github.com/BlueSpire/Durandal-Mimosa-Ske
leton.git ]] to temp holding directory.
13:16:13 - Moving cloned repo to  [[ C:\Users\Anthony\C:\Users\Anthony\node proj
ects\typelearn ]].

fs.js:642
  return binding.mkdir(pathModule._makeLong(path),
                 ^
Error: ENOENT, no such file or directory 'C:\Users\Anthony\C:\Users\Anthony\node
 projects\typelearn'
    at Object.fs.mkdirSync (fs.js:642:18)
    at _moveDirectoryContents (C:\Users\Anthony\AppData\Roaming\npm\node_modules
\mimosa\node_modules\skelmimosa\lib\command\new.js:87:8)
    at C:\Users\Anthony\AppData\Roaming\npm\node_modules\mimosa\node_modules\ske
lmimosa\lib\command\new.js:64:5
    at ChildProcess.exithandler (child_process.js:635:7)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:735:16)
    at Socket.<anonymous> (child_process.js:948:11)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Pipe.close (net.js:466:12)

명령줄 인수에서 파일 경로 주위의 따옴표를 제거하면 동일한 오류가 발생합니다.공백이 없는 파일 경로를 사용하면 동일한 오류가 발생합니다.

이것은 잘 작동합니다. C:\Users\Anthony\node projects\typelearn>mimosa skel:new durandal

하나의 질문:

  • 뼈대를 올바르게 설치하려면 어떻게 해야 합니까?나에게는 버그처럼 보입니다. C:\Users\Anthony\C:\Users\Anthony\node projects\typelearn 확실히 존재하는 경로는 아니지만 mimosa는 복제된 저장소를 그곳으로 이동하려고 시도하고 있습니다.
도움이 되었습니까?

해결책

나는 그 버그를 수정했고 Mimosa의 새 버전을 출시했다고 믿습니다.지금은 Windows에서 테스트할 수 없지만 솔루션이 크로스 플랫폼이었기를 바랍니다.

제공된 폴더는 항상 현재 디렉터리에 있는 것으로 간주되었습니다.하지만 여기서 제기한 사용 사례를 기꺼이 지원하겠습니다.

이 같은 문제가 당신을 물릴 것입니다 mimosa new 도.출시 후에 해결하겠습니다. 2.0 이번 달 말쯤.

다른 팁

경로가 현재 디렉터리에 상대적이어야 하는 것처럼 보이므로 이것이 효과가 있을 것이라고 믿습니다.

C:\Users\Anthony>mimosa skel:new durandal "\node projects\typelearn"

제공된 경로에 현재 경로를 자동으로 추가하는 것처럼 보이기 때문입니다.따라서 문서가 더 구체적이어야 할 수도 있고, 그렇지 않으면 명령이 절대 경로도 허용해야 한다는 버그가 있을 수 있습니다.

나는 이것이 버그라고 생각한다.이것은 잘 작동합니다:

C:\Users\Anthony\node projects\typelearn>mimosa skel:new durandal
14:28:11 - Retrieving registry...
14:28:11 - Found skeleton in registry
14:28:11 - Cloning GitHub repo [[ git://github.com/BlueSpire/Durandal-Mimosa-Ske
leton.git ]] to temp holding directory.
14:28:13 - Moving cloned repo to  [[ C:\Users\Anthony\node projects\typelearn ]]
.
14:28:13 - Cleaning up...
14:28:13 - Skeleton successfully cloned from GitHub.

C:\Users\Anthony\node projects\typelearn>

여기에 생성된 버그: https://github.com/dbashford/mimosa/issues/339

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top