0
tar
및 fstream
을 npm을 사용하여 설치 한 후 일부 명령을 실행했습니다. 출력은 다음과 같습니다.NPM에서 모듈 오류를 찾을 수 없습니다.
사용자 환경은 Node.js 0.10.18 (ia32) 및 npm을 사용하도록 설정되었습니다. 내가 require('tar')
을 수행 할 때
C:\Users\abc>npm --version
1.3.8
C:\Users\abc>npm list
C:\Users\abc
├── [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]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
└─┬ [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
C:\Users\abc>node --version
v0.10.18
지금 Node.js를 실행에 내가
> require('fstream')
Error: Cannot find module 'fstream'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at repl:1:2
at REPLServer.self.eval (repl.js:110:21)
at Interface.<anonymous> (repl.js:239:12)
at Interface.EventEmitter.emit (events.js:95:17)
at Interface._onLine (readline.js:202:10)
at Interface._line (readline.js:531:8)
> require('tar')
Error: Cannot find module 'tar'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at repl:1:2
at REPLServer.self.eval (repl.js:110:21)
at Interface.<anonymous> (repl.js:239:12)
at Interface.EventEmitter.emit (events.js:95:17)
at Interface._onLine (readline.js:202:10)
at Interface._line (readline.js:531:8)
내가 무엇을해야합니까
를 얻을?
나는 잘 모르겠다. 나는 심지어 -g 플래그로 시도했다. 그러나 아무것도 작동하는 것처럼 보였다. 그럼 내가 다시 시작하고 그것을했습니다. 나는 잘 모르겠다. 나는 잠이 들었을 지 모른다. –