בעיה בnpm
רשתות
8
פוסטים
1
כותבים
368
צפיות
1
עוקבים
-
אני מקבל את השגיאה הבאה
C:\Users\User>npm install -g @angular/cli npm ERR! C:\Program Files\nodejs\node_modules\npm\node_modules\normalize-package-data\lib\warning_messages.json: Unexpected token in JSON at position 0 npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\User\AppData\Roaming\npm-cache\_logs\2020-01-20T09_04_07_294Z-debug.log -
אחרי הרצת התקנה מחדש של הnode השגיאה מופיע כך
internal/modules/cjs/loader.js:250 throw e; ^ SyntaxError: Error parsing C:\Program Files\nodejs\node_modules\npm\node_modules\brace-expansion\package.json: Unexpected token D in JSON at position 0 at JSON.parse (<anonymous>) at readPackage (internal/modules/cjs/loader.js:239:25) at readPackageMain (internal/modules/cjs/loader.js:273:15) at tryPackage (internal/modules/cjs/loader.js:283:15) at Function.Module._findPath (internal/modules/cjs/loader.js:528:18) at Function.Module._resolveFilename (internal/modules/cjs/loader.js:780:27) at Function.Module._load (internal/modules/cjs/loader.js:686:27) at Module.require (internal/modules/cjs/loader.js:848:19) at require (internal/modules/cjs/helpers.js:74:18) at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\minimatch\minimatch.js:10:14) { path: 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\brace-expansion\\package.json' } internal/modules/cjs/loader.js:250 throw e; ^ SyntaxError: Error parsing C:\Program Files\nodejs\node_modules\npm\node_modules\brace-expansion\package.json: Unexpected token D in JSON at position 0 at JSON.parse (<anonymous>) at readPackage (internal/modules/cjs/loader.js:239:25) at readPackageMain (internal/modules/cjs/loader.js:273:15) at tryPackage (internal/modules/cjs/loader.js:283:15) at Function.Module._findPath (internal/modules/cjs/loader.js:528:18) at Function.Module._resolveFilename (internal/modules/cjs/loader.js:780:27) at Function.Module._load (internal/modules/cjs/loader.js:686:27) at Module.require (internal/modules/cjs/loader.js:848:19) at require (internal/modules/cjs/helpers.js:74:18) at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\minimatch\minimatch.js:10:14) { path: 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\brace-expansion\\package.json' } -
הצלחתי להתקין אנגולר כשאני מנסה ליצור תיקה
SyntaxError: Invalid or unexpected token [90m at Module._compile (internal/modules/cjs/loader.js:891:18)[39m [90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)[39m [90m at Module.load (internal/modules/cjs/loader.js:811:32)[39m [90m at Function.Module._load (internal/modules/cjs/loader.js:723:14)[39m [90m at Module.require (internal/modules/cjs/loader.js:848:19)[39m [90m at require (internal/modules/cjs/helpers.js:74:18)[39m at Object.<anonymous> (C:\Users\User\AppData\Roaming\npm\node_modules\[4m@angular[24m\cli\node_modules\[4m@angular-devkit[24m\core\src\utils\index.js:18:10) [90m at Module._compile (internal/modules/cjs/loader.js:955:30)[39m [90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)[39m [90m at Module.load (internal/modules/cjs/loader.js:811:32)[39m -
אחרי שכב הצלחתי להתקין אחרי כמה דקות כשאני כותב
npm -vאני מקבל את השגיאה הבאה
C:\Users\User>npm -v C:\Program Files\nodejs\node_modules\npm\lib\utils\unsupported.js:1 p SyntaxError: Invalid or unexpected token at Module._compile (internal/modules/cjs/loader.js:891:18) at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10) at Module.load (internal/modules/cjs/loader.js:811:32) at Function.Module._load (internal/modules/cjs/loader.js:723:14) at Module.require (internal/modules/cjs/loader.js:848:19) at require (internal/modules/cjs/helpers.js:74:18) at C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js:19:21 at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js:153:3) at Module._compile (internal/modules/cjs/loader.js:955:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10) C:\Program Files\nodejs\node_modules\npm\lib\utils\unsupported.js:1 p SyntaxError: Invalid or unexpected token [90m at Module._compile (internal/modules/cjs/loader.js:891:18)[39m [90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)[39m [90m at Module.load (internal/modules/cjs/loader.js:811:32)[39m [90m at Function.Module._load (internal/modules/cjs/loader.js:723:14)[39m [90m at Module.require (internal/modules/cjs/loader.js:848:19)[39m [90m at require (internal/modules/cjs/helpers.js:74:18)[39m at C:\Program Files\nodejs\node_modules\[4mnpm[24m\bin\npm-cli.js:19:21 at Object.<anonymous> (C:\Program Files\nodejs\node_modules\[4mnpm[24m\bin\npm-cli.js:153:3) [90m at Module._compile (internal/modules/cjs/loader.js:955:30)[39m [90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)[39m -
כשאני מריץ התקנה מחדש של האנגולר אני מקבל
npm ERR! code ENOENT npm ERR! syscall chmod npm ERR! path C:\Users\User\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\rimraf\bin.js npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file or directory, chmod 'C:\Users\User\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\rimraf\bin.js' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\User\AppData\Roaming\npm-cache\_logs\2020-01-20T12_03_19_330Z-debug.log -
אחרי התקנת תעודה של נטפרי השגיאה היא
npm ERR! code Z_BUF_ERROR npm ERR! errno -5 npm ERR! zlib: unexpected end of file npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\User\AppData\Roaming\npm-cache\_logs\2020-01-20T12_13_50_665Z-debug.log
שלום! נראה שהשיחה הזו מעניינת אותך, אבל עדיין אין לך חשבון.
נמאס לכם לגלול בין אותם הפוסטים בכל ביקור? כשנרשמים לחשבון, תמיד תחזרו בדיוק למקום שבו הייתם קודם, ותוכלו לבחור לקבל התראות על תגובות חדשות (בין אם במייל, ובין אם בהתראת פוש). תוכלו גם לשמור סימניות ולפרגן ב-upvote לפוסטים כדי להביע הערכה לחברי קהילה אחרים.
בעזרת התרומה שלך, הפוסט הזה יכול להיות אפילו טוב יותר 💗
הרשמה התחברות