جشنواره عیدانه راکت | عضویت ویژه راکت برای آخرین بار | افزایش قیمت‌ها از سال جدید | و ...

مشاهده اطلاعات بیشتر...
ثانیه
دقیقه
ساعت
روز
atras
3 سال پیش توسط atras مطرح شد
5 پاسخ

مشکل npm در لاراول

سلام وقت بخیر
من یک پروژه رو از گیت هاب گرفتم ولی تو بخش npm کلی خطا میده ولی هرکاری میکنم این خطا ها رفع نمیشه
البته وقتی دستور npm run watch رو میزنم خطا میده
اگر کسی میدونه چجوری میتونم این خطا ها رو رفع کنم ممنون میشم اعلام کنه

آدرس پروژه در گیت هاب :
https://github.com/bradtraversy/larticles_vue_app

خطا ها:

Time Elapsed 00:01:05.54
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\Samir\Desktop\theend\larticles_vue_app\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Windows_NT 10.0.19041
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Samir\\Desktop\\theend\\larticles_vue_app\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags="
"--libsass_library="
gyp ERR! cwd C:\Users\Samir\Desktop\theend\larticles_vue_app\node_modules\node-sass
gyp ERR! node -v v14.15.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.7.2 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.7.2 postinstall 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!     C:\Users\Samir\AppData\Roaming\npm-cache\_logs\2020-11-08T18_33_14_555Z-debug.log

ثبت پرسش جدید
نیما - ش
تخصص : برنامه نویس وب
@nimageneral 3 سال پیش مطرح شد
0

اول دپندنسی های npm رو نصب کن با دستور زیر

npm i

و بعد دستور watch

npm run watch

atras
تخصص : Frontend dev
@atras 3 سال پیش مطرح شد
0

@nimageneral عزیز
من npm install رو run کردم
بعد اینکه نصب میکنم و npm run watch رو میزنم این خطا ها رو میده که اصلا نمیفهمم


محمدحسن یگانه
تخصص : Full-Stack Web Developer Freel...
@mhyeganeh 3 سال پیش آپدیت شد
0

احتمالا علت اصلیش خیلی قدیمی بودن پروژه باشه و عدم سازگاریش با نسخه های جدید NPM یا بعضی دیگه از پکیج ها. اگر خیلی اصرار به اجراش داشته باشید شاید لازم باشه NPM و Node و حتی Compser تون رو به نسخه های پایین تر downgrade کنید.


atras
تخصص : Frontend dev
@atras 3 سال پیش مطرح شد
0

بله من هم به این نتیجه رسیدم
چجوری باید به نسخه پایین تر برگردونم؟؟؟
@mhyeganeh


محمدحسن یگانه
تخصص : Full-Stack Web Developer Freel...
@mhyeganeh 3 سال پیش مطرح شد
0

احتراما از طریق جستجو در گوگل یا مراجعه به مستندات رسمی هر کدوم🙂🙄


برای ارسال پاسخ لازم است وارد شده یا ثبت‌نام کنید

ورود یا ثبت‌نام