안녕하세요 상훈입니다.

에러 내용

그간 자주 npm run dev / npm run 에러가 발생하였었는데, 오늘에서야 진짜 이유를 알았습니다.

 

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ development: `mix`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ development 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:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ dev: `npm run development`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ 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:

 

일단 에러 해결부터

npm i -g npm@latest

 

바로 npm의 최신 버전 설치였습니다.

제가 얼마전에 npm 설치를 했었기에 막연하게 최신버전이겠거니 해서 신경 자체를 안썼습니다.

그러나 오늘 알게되었습니다...... 후.... 깊은 brain crack이 찾아오네요 ㅎㅎ

 

화이팅입니다.

 

참고

 

npm run dev error, node modules 에러

npm run dev 명령어를 쳤는데 계속 아래와 같은 에러가 출력된다 -------npm run dev error------ #이것도 뜨고 node_modules/cross-env/src/index.js:23 #이것도 뜨고 npm ERR! cb.apply is not a function #이것..

bug41.tistory.com

 

반응형

안녕하세요 상훈입니다.

 

npm install 명령어를 통해서 npm 프로젝트를 업데이트 및 설치를 하는데 갑자기

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.13.1 postinstall: `node scripts/build.js`

npm ERR! Exit status 1 
npm ERR! Failed at the node-sass@4.13.1 postinstall script.

에러가 발생하였습니다.

해당 에러는 

node.js의 버전일치로 해결이 가능합니다.

 

 

 

node.js - 오류 npm 설치-node-sass@4.13.1 설치 후 :`node scripts /build.js

npm을 설치할 때마다 npm ERR! errno 1 npm ERR! [email protected] postinstall: `node scripts/build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] postinstall script. npm ERR! This is probably not a problem with npm. The

www.python2.net

 

 

참고

반응형

안녕하세요 상훈입니다.

Vue.js 3 의 예제를 찾고 계시는 분들을 위한 Vue3 예제 강의 약 11편이 준비되어있습니다.

vue3 공식 페이지에도 게재되어있으니 안심하시고 들어가셔도 됩니다. 

 

기본적인 vue의 문법들( if, else, components, props 등)을 모두 가르쳐줍니다.

짧고 유용한 강의 추천드립니다.

 

뷰 강의 들으러 가기

 

Intro to Vue 3 - Intro to Vue 3 | Vue Mastery

Learn about Vue 3

www.vuemastery.com

 

반응형

안녕하세요 상훈입니다.

Vue.js 3 혹은 2를 사용하시는데 갑자기 

 

Vue.createApp is not working but Is working with new Vue() method

이러한 에러가 떴다면, 사용하려는 script cdn 혹은 설치하신 vue 라이브러리가 Vue 2를 의미합니다.

그렇기 때문에 Vue 3 로 변경을 해주어야합니다.

클릭시 vue 공식 웹사이트로 이동합니다(새창)

개발 모드 혹은 공부하실 때 사용하시면 되는 cdn 주소입니다.

<script src="https://unpkg.com/vue@next"></script>

이걸로 복사하셔도 무방하구요!

 

 

참고

 

Vue.createApp is not working but Is working with new Vue() method

I'm getting this error tesyya.js:16 Uncaught TypeError: Vue.createApp is not a function mycode follows like this const app = Vue.createApp({ data() { return { count: 4 } } })

stackoverflow.com

 

반응형

안녕하세요 상훈입니다.

매번 검색해서 복붙하기가 너무 귀찮아 포스팅합니다.

<script src="https://unpkg.com/vue@next"></script>

 

 

Vue.js 3

반응형

 

 

귀여운 고양이 교배 성공,,

처음 데려온 고양이는 진짜 하얗고 오드아이에 이뻐서 애지중지하고있었는데,

어느 날 홀연히 나타난 미친 마녀가 무자비하게 던진 포션에 맞아서 내 옆에 있다가 죽어버림... ㅠㅠ

 

그러다가 주변에서 우연찮게 바둑이 고양이 꼬셔서 있다가 오늘에서야 치즈냥이 또 새로 찾아서 꼬시고 교배시켰다.

 

아기고양이는 치즈냥~~

교배 방법 : 날생선을 고양이에게 주면 알아서 교배하여 번식한다. (실내에서 하는 것이 유력해보임) 

 

반응형
Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_1__.defineComponent) is not a function at Module../node_modules/@fortawesome/vue-fontawesome/index.es.js (app.js:9861) at __webpack_require__ (app.js:42680) at Module../resources/js/app.js (app.js:12207) at __webpack_require__ (app.js:42680) at app.js:42845 at Function.__webpack_require__.O (app.js:42717) at app.js:42847 at app.js:42849

 

또 에러 나옴

멍미 이거

Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_1__.defineComponent) is not a function
    at Module../node_modules/@fortawesome/vue-fontawesome/index.es.js (app.js:9861)
    at __webpack_require__ (app.js:42680)
    at Module../resources/js/app.js (app.js:12207)
    at __webpack_require__ (app.js:42680)
    at app.js:42845
    at Function.__webpack_require__.O (app.js:42717)
    at app.js:42847
    at app.js:42849

반응형
반응형

+ Recent posts