بعد انشاء جميع الملفات حص مشكلة وحذف ملف webpack.config.js وحذفت معه جميع الاضافة قمت بنسخ نفس الملف من مكان اخر واعادة تثبيت جميع الاضافات حتى ويب باك ثبته بالبداية ولكنه مازال يعطيني خطا عند اعادة تشغيل السيرفر فهمت انه غير متعرف على ويب لذلك حاولت اعادة تثبيته لكنه ايضا اعطاني خطا
هذه رسالى الخطان
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\coffee>npm run build
> coffee@1.0.0 build C:\coffee
> webpack serve
'webpack' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! coffee@1.0.0 build: `webpack serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the coffee@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\len\AppData\Roaming\npm-cache\_logs\2021-08-09T23_09_03_53
4Z-debug.log
C:\coffee>npm i --save-dev webpack
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellane
ous Warning CERT_NOT_YET_VALID: request to https://registry.npmjs.org/webpack fa
iled, reason: certificate is not yet valid
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a req
uest error during revalidation.
npm WARN optimize-css-assets-webpack-plugin@6.0.1 requires a peer of webpack@^4.
0.0 but none is installed. You must install peer dependencies yourself.
npm WARN coffee@1.0.0 No description
npm ERR! code EEXIST
npm ERR! path C:\coffee\node_modules\.bin\webpack.ps1
npm ERR! Refusing to delete C:\coffee\node_modules\.bin\webpack.ps1: ../webpack/
bin/webpack.js symlink target is not controlled by npm C:\coffee\node_modules\we
bpack
npm ERR! File exists: C:\coffee\node_modules\.bin\webpack.ps1
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\len\AppData\Roaming\npm-cache\_logs\2021-08-09T23_10_00_74
9Z-debug.log
C:\coffee>
السؤال
Najah Alsaker
بعد انشاء جميع الملفات حص مشكلة وحذف ملف webpack.config.js وحذفت معه جميع الاضافة قمت بنسخ نفس الملف من مكان اخر واعادة تثبيت جميع الاضافات حتى ويب باك ثبته بالبداية ولكنه مازال يعطيني خطا عند اعادة تشغيل السيرفر فهمت انه غير متعرف على ويب لذلك حاولت اعادة تثبيته لكنه ايضا اعطاني خطا
هذه رسالى الخطان
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\coffee>npm run build > coffee@1.0.0 build C:\coffee > webpack serve 'webpack' is not recognized as an internal or external command, operable program or batch file. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! coffee@1.0.0 build: `webpack serve` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the coffee@1.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional log ging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\len\AppData\Roaming\npm-cache\_logs\2021-08-09T23_09_03_53 4Z-debug.log C:\coffee>npm i --save-dev webpack npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellane ous Warning CERT_NOT_YET_VALID: request to https://registry.npmjs.org/webpack fa iled, reason: certificate is not yet valid npm WARN registry Using stale data from https://registry.npmjs.org/ due to a req uest error during revalidation. npm WARN optimize-css-assets-webpack-plugin@6.0.1 requires a peer of webpack@^4. 0.0 but none is installed. You must install peer dependencies yourself. npm WARN coffee@1.0.0 No description npm ERR! code EEXIST npm ERR! path C:\coffee\node_modules\.bin\webpack.ps1 npm ERR! Refusing to delete C:\coffee\node_modules\.bin\webpack.ps1: ../webpack/ bin/webpack.js symlink target is not controlled by npm C:\coffee\node_modules\we bpack npm ERR! File exists: C:\coffee\node_modules\.bin\webpack.ps1 npm ERR! Remove the existing file and try again, or run npm npm ERR! with --force to overwrite files recklessly. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\len\AppData\Roaming\npm-cache\_logs\2021-08-09T23_10_00_74 9Z-debug.log C:\coffee>
6 أجوبة على هذا السؤال
Recommended Posts
انضم إلى النقاش
يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.