본문 바로가기
인프라/윈도우서버

[WINDOWS] 윈도우 서버 nodejs forever 설치 오류 해결방법

by IT맥구리나스 2024. 1. 5.

윈도우에 nodejs를 설치 후 npm을 이용하여 forever 모듈을 설치 하고자 할때 설치 에러가 발생한다

 

인터넷에 널려있는 설치방법은 리눅스용이다(윈도우용이 따로 있다는것도 놀랍네..;;)

npm install forever -g

 

따라서 윈도우에서 forever를 설치 시도시 아래 와 같은 에러를 뱉는다

C:\Users\test>npm install forever -g
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
C:\Users\test\AppData\Roaming\npm
`-- (empty)

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\forever\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "forever" "-g"
npm ERR! node v6.9.4
npm ERR! npm  v3.10.10
npm ERR! path C:\Users\test\AppData\Roaming\npm\node_modules\.staging\@types\triple-beam-a174c2a3\package.json
npm ERR! code ENOTDIR
npm ERR! errno -4058
npm ERR! syscall open

npm ERR! ENOENT: no such file or directory, open 'C:\Users\test\AppData\Roaming\npm\node_modules\.staging\@types\triple-beam-a174c2a3\package.json'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\test\npm-debug.log
npm ERR! code 1

 

해결방법

아래 명령어로 수행

npm -g install forever-win
반응형

댓글