最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

Angular版本8

IT培训 admin 4浏览 0评论

Angular版本8

我以管理员身份在标准Windows 10上运行以下命令。

我按照书中的说明安装了角度(版本8)...

D:\>npm install -g @angular/cli
C:\Users\ThinkInCode\AppData\Roaming\npm\ng -> C:\Users\ThinkInCode\AppData\Roaming\npm\node_modules\@angular\cli\bin\ng

> @angular/[email protected] postinstall C:\Users\ThinkInCode\AppData\Roaming\npm\node_modules\@angular\cli
> node ./bin/postinstall/script.js

+ @angular/[email protected]
added 244 packages from 185 contributors in 155.387s

D:\>cd wamp64\www\NGAPPS\UDEMY

D:\wamp64\www\NGAPPS\UDEMY>ng --version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 8.3.8
Node: 12.11.0
OS: win32 x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.803.8
@angular-devkit/core         8.3.8
@angular-devkit/schematics   8.3.8
@schematics/angular          8.3.8
@schematics/update           0.803.8
rxjs                         6.4.0

继续创建我的项目...

D:\wamp64\www\NGAPPS\UDEMY>ng new NG8-APP --routing
? Which stylesheet format would you like to use? CSS
CREATE NG8-APP/angular.json (3617 bytes)
CREATE NG8-APP/package.json (1283 bytes)
CREATE NG8-APP/README.md (1025 bytes)
CREATE NG8-APP/tsconfig.json (543 bytes)
CREATE NG8-APP/tslint.json (1953 bytes)
CREATE NG8-APP/.editorconfig (246 bytes)
CREATE NG8-APP/.gitignore (631 bytes)
CREATE NG8-APP/browserslist (429 bytes)
CREATE NG8-APP/karma.conf.js (1021 bytes)
CREATE NG8-APP/tsconfig.app.json (270 bytes)
CREATE NG8-APP/tsconfig.spec.json (270 bytes)
CREATE NG8-APP/src/favicon.ico (948 bytes)
CREATE NG8-APP/src/index.html (294 bytes)
CREATE NG8-APP/src/main.ts (372 bytes)
CREATE NG8-APP/src/polyfills.ts (2838 bytes)
CREATE NG8-APP/src/styles.css (80 bytes)
CREATE NG8-APP/src/test.ts (642 bytes)
CREATE NG8-APP/src/assets/.gitkeep (0 bytes)
CREATE NG8-APP/src/environments/environment.prod.ts (51 bytes)
CREATE NG8-APP/src/environments/environment.ts (662 bytes)
CREATE NG8-APP/src/app/app-routing.module.ts (246 bytes)
CREATE NG8-APP/src/app/app.module.ts (393 bytes)
CREATE NG8-APP/src/app/appponent.html (25530 bytes)
CREATE NG8-APP/src/app/appponent.spec.ts (1107 bytes)
CREATE NG8-APP/src/app/appponent.ts (213 bytes)
CREATE NG8-APP/src/app/appponent.css (0 bytes)
CREATE NG8-APP/e2e/protractor.conf.js (810 bytes)
CREATE NG8-APP/e2e/tsconfig.json (214 bytes)
CREATE NG8-APP/e2e/src/app.e2e-spec.ts (642 bytes)
CREATE NG8-APP/e2e/src/app.po.ts (262 bytes)
npm WARN tarball tarball data for @angular/compiler@~8.2.9 (sha1-8BQhStPcbrC/OVzSgpMWPQd6p7Q=) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/core@~8.2.9 (sha1-tOUwPWkijTA2KmShrkX46IpfLiQ=) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for typescript@~3.5.3 (sha1-yDD2V/k/HqhGgZ6SkJL1/lmD6Xc=) seems to be corrupted. Trying one more time.
npm ERR! code EPERM
npm ERR! syscall unlink
npm ERR! path D:\wamp64\www\NGAPPS\UDEMY\NG8-APP\node_modules\.staging\@angular\core-3db91d17\fesm2015\core.js
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, unlink 'D:\wamp64\www\NGAPPS\UDEMY\NG8-APP\node_modules\.staging\@angular\core-3db91d17\fesm2015\core.js'
npm ERR!  [OperationalError: EPERM: operation not permitted, unlink 'D:\wamp64\www\NGAPPS\UDEMY\NG8-APP\node_modules\.staging\@angular\core-3db91d17\fesm2015\core.js'] {
npm ERR!   cause: [Error: EPERM: operation not permitted, unlink 'D:\wamp64\www\NGAPPS\UDEMY\NG8-APP\node_modules\.staging\@angular\core-3db91d17\fesm2015\core.js'] {
npm ERR!     errno: -4048,
npm ERR!     code: 'EPERM',
npm ERR!     syscall: 'unlink',
npm ERR!     path: 'D:\\wamp64\\www\\NGAPPS\\UDEMY\\NG8-APP\\node_modules\\.staging\\@angular\\core-3db91d17\\fesm2015\\core.js'
npm ERR!   },
npm ERR!   stack: "Error: EPERM: operation not permitted, unlink 'D:\\wamp64\\www\\NGAPPS\\UDEMY\\NG8-APP\\node_modules\\.staging\\@angular\\core-3db91d17\\fesm2015\\core.js'",
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'unlink',
npm ERR!   path: 'D:\\wamp64\\www\\NGAPPS\\UDEMY\\NG8-APP\\node_modules\\.staging\\@angular\\core-3db91d17\\fesm2015\\core.js',
npm ERR!   parent: 'NG8-APP'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ThinkInCode\AppData\Roaming\npm-cache\_logs\2019-10-10T17_09_33_041Z-debug.log
Package install failed, see above.

[整整一天没有花多少努力就能成功安装...

我已经禁用了防病毒软件有几次 重复安装],还重新启动了我的机器,确保VS Studio代码已关闭 ...,运行[ C0],然后是npm cache clean,然后手动删除%APPDATA%路径下的npm缓存npm文件夹,然后使用npm cache clean --force全部删除reinstalled angular到相同的[[EPERM错误,...不同的文件,但相同的错误。 我已阅读某处将其降级至

ver。 7

,但我不能,因为我需要角度ver。 8 ...另外,ver。 8应该以某种方式成功安装!由于某些React Native项目,我还需要一个相当新的Node.js。我到底应该怎么做?请帮助。

我以管理员身份在标准Windows 10上运行以下命令。按照书中的说明安装了angular(版本8)... D:\> npm install -g @ angular / cli C:\ Users \ ThinkInCode \ AppData \漫游\ npm \ ng-&... 回答如下:尝试使用以下方法卸载CLI:

Angular版本8

我以管理员身份在标准Windows 10上运行以下命令。

我按照书中的说明安装了角度(版本8)...

D:\>npm install -g @angular/cli
C:\Users\ThinkInCode\AppData\Roaming\npm\ng -> C:\Users\ThinkInCode\AppData\Roaming\npm\node_modules\@angular\cli\bin\ng

> @angular/[email protected] postinstall C:\Users\ThinkInCode\AppData\Roaming\npm\node_modules\@angular\cli
> node ./bin/postinstall/script.js

+ @angular/[email protected]
added 244 packages from 185 contributors in 155.387s

D:\>cd wamp64\www\NGAPPS\UDEMY

D:\wamp64\www\NGAPPS\UDEMY>ng --version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 8.3.8
Node: 12.11.0
OS: win32 x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.803.8
@angular-devkit/core         8.3.8
@angular-devkit/schematics   8.3.8
@schematics/angular          8.3.8
@schematics/update           0.803.8
rxjs                         6.4.0

继续创建我的项目...

D:\wamp64\www\NGAPPS\UDEMY>ng new NG8-APP --routing
? Which stylesheet format would you like to use? CSS
CREATE NG8-APP/angular.json (3617 bytes)
CREATE NG8-APP/package.json (1283 bytes)
CREATE NG8-APP/README.md (1025 bytes)
CREATE NG8-APP/tsconfig.json (543 bytes)
CREATE NG8-APP/tslint.json (1953 bytes)
CREATE NG8-APP/.editorconfig (246 bytes)
CREATE NG8-APP/.gitignore (631 bytes)
CREATE NG8-APP/browserslist (429 bytes)
CREATE NG8-APP/karma.conf.js (1021 bytes)
CREATE NG8-APP/tsconfig.app.json (270 bytes)
CREATE NG8-APP/tsconfig.spec.json (270 bytes)
CREATE NG8-APP/src/favicon.ico (948 bytes)
CREATE NG8-APP/src/index.html (294 bytes)
CREATE NG8-APP/src/main.ts (372 bytes)
CREATE NG8-APP/src/polyfills.ts (2838 bytes)
CREATE NG8-APP/src/styles.css (80 bytes)
CREATE NG8-APP/src/test.ts (642 bytes)
CREATE NG8-APP/src/assets/.gitkeep (0 bytes)
CREATE NG8-APP/src/environments/environment.prod.ts (51 bytes)
CREATE NG8-APP/src/environments/environment.ts (662 bytes)
CREATE NG8-APP/src/app/app-routing.module.ts (246 bytes)
CREATE NG8-APP/src/app/app.module.ts (393 bytes)
CREATE NG8-APP/src/app/appponent.html (25530 bytes)
CREATE NG8-APP/src/app/appponent.spec.ts (1107 bytes)
CREATE NG8-APP/src/app/appponent.ts (213 bytes)
CREATE NG8-APP/src/app/appponent.css (0 bytes)
CREATE NG8-APP/e2e/protractor.conf.js (810 bytes)
CREATE NG8-APP/e2e/tsconfig.json (214 bytes)
CREATE NG8-APP/e2e/src/app.e2e-spec.ts (642 bytes)
CREATE NG8-APP/e2e/src/app.po.ts (262 bytes)
npm WARN tarball tarball data for @angular/compiler@~8.2.9 (sha1-8BQhStPcbrC/OVzSgpMWPQd6p7Q=) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/core@~8.2.9 (sha1-tOUwPWkijTA2KmShrkX46IpfLiQ=) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for typescript@~3.5.3 (sha1-yDD2V/k/HqhGgZ6SkJL1/lmD6Xc=) seems to be corrupted. Trying one more time.
npm ERR! code EPERM
npm ERR! syscall unlink
npm ERR! path D:\wamp64\www\NGAPPS\UDEMY\NG8-APP\node_modules\.staging\@angular\core-3db91d17\fesm2015\core.js
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, unlink 'D:\wamp64\www\NGAPPS\UDEMY\NG8-APP\node_modules\.staging\@angular\core-3db91d17\fesm2015\core.js'
npm ERR!  [OperationalError: EPERM: operation not permitted, unlink 'D:\wamp64\www\NGAPPS\UDEMY\NG8-APP\node_modules\.staging\@angular\core-3db91d17\fesm2015\core.js'] {
npm ERR!   cause: [Error: EPERM: operation not permitted, unlink 'D:\wamp64\www\NGAPPS\UDEMY\NG8-APP\node_modules\.staging\@angular\core-3db91d17\fesm2015\core.js'] {
npm ERR!     errno: -4048,
npm ERR!     code: 'EPERM',
npm ERR!     syscall: 'unlink',
npm ERR!     path: 'D:\\wamp64\\www\\NGAPPS\\UDEMY\\NG8-APP\\node_modules\\.staging\\@angular\\core-3db91d17\\fesm2015\\core.js'
npm ERR!   },
npm ERR!   stack: "Error: EPERM: operation not permitted, unlink 'D:\\wamp64\\www\\NGAPPS\\UDEMY\\NG8-APP\\node_modules\\.staging\\@angular\\core-3db91d17\\fesm2015\\core.js'",
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'unlink',
npm ERR!   path: 'D:\\wamp64\\www\\NGAPPS\\UDEMY\\NG8-APP\\node_modules\\.staging\\@angular\\core-3db91d17\\fesm2015\\core.js',
npm ERR!   parent: 'NG8-APP'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ThinkInCode\AppData\Roaming\npm-cache\_logs\2019-10-10T17_09_33_041Z-debug.log
Package install failed, see above.

[整整一天没有花多少努力就能成功安装...

我已经禁用了防病毒软件有几次 重复安装],还重新启动了我的机器,确保VS Studio代码已关闭 ...,运行[ C0],然后是npm cache clean,然后手动删除%APPDATA%路径下的npm缓存npm文件夹,然后使用npm cache clean --force全部删除reinstalled angular到相同的[[EPERM错误,...不同的文件,但相同的错误。 我已阅读某处将其降级至

ver。 7

,但我不能,因为我需要角度ver。 8 ...另外,ver。 8应该以某种方式成功安装!由于某些React Native项目,我还需要一个相当新的Node.js。我到底应该怎么做?请帮助。

我以管理员身份在标准Windows 10上运行以下命令。按照书中的说明安装了angular(版本8)... D:\> npm install -g @ angular / cli C:\ Users \ ThinkInCode \ AppData \漫游\ npm \ ng-&... 回答如下:尝试使用以下方法卸载CLI:

与本文相关的文章

发布评论

评论列表 (0)

  1. 暂无评论