작성자 없음
작성자 정보가 삭제된 글입니다.
작성
·
3.9K
0
안녕하세요 강의 잘 따라가고있었는데
4번째 강의 1분 52초 쯤에 npm dev 하는 부분에서
에러가 발생해서 질문 드리겠습니다
에러는
found 5069 vulnerabilities (5060 low, 9 high)
run `npm audit fix` to fix them, or `npm audit` for details
PS C:\Users\hsj11\Desktop\boilerplate-mern-stack-master\client> npm run dev
npm ERR! missing script: dev
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\hsj11\AppData\Roaming\npm-cache\_logs\2021-01-11T18_08_39_140Z-debug.log
이렇게 뜹니다
답변 3
0
0
현재 package.json 파일안에 dev 를 위한 스크립트를 지정하지 않으신것 같습니다 ~ !!
그 부분을 https://github.com/jaewonhimnae/react-movie-app-ko
이것을 보고 똑같이 넣어주세요 ~ !
0
껐다 켰더니 오류 문구가 바뀌었습니다
npm ERR! code ELIFECYCLE
[1] npm ERR! errno 1
[1] npm ERR! client@0.1.0 start: `react-scripts start`
[1] npm ERR! Exit status 1
[1] npm ERR!
[1] npm ERR! Failed at the client@0.1.0 start script.
[1] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[1]
[1] npm ERR! A complete log of this run can be found in:
[1] npm ERR! C:\Users\hsj11\AppData\Roaming\npm-cache\_logs\2021-01-11T19_17_12_855Z-debug.log
[1] npm run start --prefix client exited with code 1
[0] [nodemon] 1.19.4
[0] [nodemon] to restart at any time, enter `rs`
[0] [nodemon] watching dir(s): *.*
[0] [nodemon] watching extensions: js,mjs,json
[0] [nodemon] starting `node server/index.js`
[0] Server Listening on 5000
[0] MongoParseError: Invalid connection string
[0] at parseConnectionString (C:\Users\hsj11\Desktop\boilerplate-mern-stack-master\node_modules\mongodb\lib\core\uri_parser.js:547:21)
[0] at connect (C:\Users\hsj11\Desktop\boilerplate-mern-stack-master\node_modules\mongodb\lib\operations\connect.js:272:3)
[0] at C:\Users\hsj11\Desktop\boilerplate-mern-stack-master\node_modules\mongodb\lib\mongo_client.js:215:5
[0] at maybePromise (C:\Users\hsj11\Desktop\boilerplate-mern-stack-master\node_modules\mongodb\lib\utils.js:719:3)
[0] at MongoClient.connect (C:\Users\hsj11\Desktop\boilerplate-mern-stack-master\node_modules\mongodb\lib\mongo_client.js:211:10)
[0] at C:\Users\hsj11\Desktop\boilerplate-mern-stack-master\node_modules\mongoose\lib\connection.js:709:12
[0] at new Promise (<anonymous>)
[0] at NativeConnection.Connection.openUri (C:\Users\hsj11\Desktop\boilerplate-mern-stack-master\node_modules\mongoose\lib\connection.js:706:19)
[0] at Mongoose.connect (C:\Users\hsj11\Desktop\boilerplate-mern-stack-master\node_modules\mongoose\lib\index.js:333:15)
[0] at Object.<anonymous> (C:\Users\hsj11\Desktop\boilerplate-mern-stack-master\server\index.js:18:26)
[0] at Module._compile (internal/modules/cjs/loader.js:1137:30)
[0] at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
[0] at Module.load (internal/modules/cjs/loader.js:985:32)
[0] at Function.Module._load (internal/modules/cjs/loader.js:878:14)
[0] at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
[0] at internal/main/run_main_module.js:17:47 {
[0] [Symbol(mongoErrorContextSymbol)]: {}
[0] }