安装angular-cli

对我来说angular度是相当新的,英语不是我的第一语言,所以我提前道歉。 我是一名学生,我必须使用MEAN平台做一个应用程序。 我们从来没有使用任何平均值组件,或大学的JavaScript,但现在我必须做这个项目。 我正在按照这个教程 – > https://www.youtube.com/watch?v=wtIvu085uU0&list=PLTPtZWpWLI00vlAPQnDt8OlPwoYxuMCQo&index=4 ,一切长达45分钟的video工作得很好。 在45分钟,它说我必须安装@angular/cli但我第一次@angular/cli 。 然后我试着再inputnpm install @angular/cli ,然后就没有错误了。 就像它应该是,就像在video中一样。 但是,当我inputng new client它说

ng is not recognized as an internal or external command, operable program or batch file.

我不知道该怎么做,我试着再次安装angular-cli,但每次都是一样的。 我很绝望。

版本:

节点–version = v6.11.3

npm –version = 3.10.10

Windows 10

当我input“npm install @ angular / cli”时出现错误:

 npm ERR! tarball.destroy is not a function npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! github npm WARN retry will retry, error on last attempt: Error: EBUSY: resource busy or locked, rename 'C:\Users\Loran\AppData\Local\Temp\npm-9616-ee3846a1\registry.npmjs.org\eventemitter3-\eventemitter3-1.2.0.tgz.1057597416' -> 'C:\Users\Loran\AppData\Local\Temp\npm-9616-ee3846a1\registry.npmjs.org\eventemitter3-\eventemitter3-1.2.0.tgz' npm ERR! Windows_NT 10.0.15063 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "@angular/cli" npm ERR! node v6.11.3 npm ERR! npm v3.10.10 npm ERR! tarball.destroy is not a function npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! github kontakti@1.0.0 D:\Project\kontakti `-- @angular/cli@1.4.0 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN kontakti@1.0.0 No description npm WARN kontakti@1.0.0 No repository field. npm ERR! Windows_NT 10.0.15063 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "@angular/cli" npm ERR! node v6.11.3 npm ERR! npm v3.10.10 npm ERR! Callback called more than once. npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! github npm ERR! Please include the following file with any support request: npm ERR! D:\Project\kontakti\npm-debug.log