여기 내 코드`의 FS-extra`가 통합`블루 버드``undefined` 오류 '다음'속성을 읽을 수있어
var Promise = require('bluebird');
var fse = Promise.promisifyAll(require('fs-extra'));
fse.remove('./myDir').then(function() {
console.log('Remove myDir done.')
});
난 항상 TypeError: Cannot read property 'then' of undefined
오류가 있습니다.
버전 :
node: v6.9.2
bluebird: 3.4.7
fs-extra: 1.0.0
나는 검색과 정확히 같을 유사한 question하지만 발견, 나는 불행하게도, 그것은 내 문제를 해결할 수없는, 그 대답을 시도했다.
나는 아무것도 못 찾았나요?
그것은 내 잘못이야, 내가 fse.remove' 방법'에'Async' 접미사를 추가하는 것을 잊었다, 올바른 방법으로해야한다'fse.removeAsync'는 [여기] (HTTP를 참조하십시오. com/docs/features.html) –