강의

멘토링

커뮤니티

Cộng đồng Hỏi & Đáp của Inflearn

Không có người viết

Bài viết có thông tin người viết đã bị xóa.

Chuỗi bài học về Node và React để học bằng cách theo dõi - Tạo một trang YouTube

Tạo một framework tổng thể và kết nối với Mongo DB

에러가 도저히 해결이 안돼서 도움 부탁드립니다.

Viết

·

466

0

구글링 해보면서 node 다시깔고 환경변수 설정도 해봤는데 여전히 몇일째 해결을 못하고 있습니다. 이전에 보일러플레이트 강의 들었을때 했던것도 같은 오류로 실행이 안되네요 어떻게 해결해야 할까요..?

> react-boiler-plate@1.0.0 dev C:\Users\lnr99\Documents\boilerplate-mern-stack-master
> concurrently "npm run backend" "npm run start --prefix client"

[0] Error occurred when executing command: npm run backend
[0] Error: spawn cmd.exe ENOENT
[0]     at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
[0]     at onErrorNT (internal/child_process.js:467:16)
[0]     at processTicksAndRejections (internal/process/task_queues.js:82:21)
[1] Error occurred when executing command: npm run start --prefix client
[1] Error: spawn cmd.exe ENOENT
[1]     at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
[1]     at onErrorNT (internal/child_process.js:467:16)
[1]     at processTicksAndRejections (internal/process/task_queues.js:82:21)
[1] npm run start --prefix client exited with code -4058
[0] npm run backend exited with code -4058
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-boiler-plate@1.0.0 dev: `concurrently "npm run backend" "npm run start --prefix client"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-boiler-plate@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
mongodbnodejsreactredux

Câu trả lời 2

0

네 package.json에는 잘 되어있는데 오류메세지로는 저렇게 나오네요ㅠㅠ

0

혹시 backslash를 쓰셨나요?

concurrently \"npm run backend\" \"npm run start --prefix client\"

이렇게요.

Không có người viết

Bài viết có thông tin người viết đã bị xóa.

Đặt câu hỏi