• 1400/04/03

استارت پروژه در windows powershell :

سلام خسته نباشید

 دستوراتی رو که گفتی زدم ولی نتایج ی مثل شما نگرفتم

PS C:\Angular> npm install -g @angular/cli
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

changed 234 packages, and audited 235 packages in 4m

23 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
PS C:\Angular> ng new firstapp
ng : File C:\Users\Milad\AppData\Roaming\npm\ng.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ ng new firstapp
+ ~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess
  • 1400/04/04
  • ساعت 20:10

سلام

دستور زیر رو در terminal به صورت گفته شده اجرا کنید و هنگام پرسیدن سوال مقدار y رو بزنین:

 

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy UnRestricted

بعد دوباره نصب رو تست کنین


  • 1400/04/05
  • ساعت 00:26

سلام استاد 

این پیام اومد 

PS C:\Users\Milad> Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy UnRestricted

Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): y
PS C:\Users\Milad> npm install -g '@angular/cli'
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

changed 235 packages, and audited 236 packages in 27s

23 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

 

ولی وقتی بعدش دستور ng new firstapp رو زدم فایل first app رو ساخت و run هم شد بنظرتون npm WARN هایی که داد باعث نمیشه فایل firstapp ناقص ساخته شده باشه؟

این از فایل هایی که ساخته ، ناقص نیست؟


  • 1400/04/07
  • ساعت 00:08

سلام 

پروژه کامل نصب شده و همچی اوکی هست و به warning ها هم باید عادت کنی توی همه پروژه ها هست


logo-samandehi