[英]Error: npm install -g angular-cli | npm ERR! Windows_NT 10.0.10586
Error while running: npm install -g angular-cli
运行时出错:npm install -g angular-cli
C:\Windows\System32>node -v
v7.5.0
C:\Windows\System32>npm -v
4.1.2
C:\Users\Chiranjeevi>npm -v minimatch
4.1.2
-------------------------------------------------------------------------------------------
C:\Users\Chiranjeevi>npm install -g angular-cli
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN不建议使用minimatch@2.0.10:请更新至minimatch 3.0.2或更高版本,以避免RegExp DoS问题
C:\\Users\\Chiranjeevi\\AppData\\Roaming\\npm `-- (empty) C:\\ Users \\ Chiranjeevi \\ AppData \\ Roaming \\ npm`-(空)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\\angular-cli\\node_modules\\chokidar\\node_modules\\fsevents): npm警告可选的跳过选择性依赖性:fsevents@^1.0.0(node_modules \\ angular-cli \\ node_modules \\ chokidar \\ node_modules \\ fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN notsup跳过依赖项:fsevents@1.0.17不受支持的平台:wanted {“ os”:“ darwin”,“ arch”:“ any”}(当前:{“ os”:“ win32”,“ arch”: “64”})
npm WARN @angular/core@2.4.6 requires a peer of rxjs@^5.0.1 but none was installed. npm WARN @ angular / core @ 2.4.6要求rxjs@^5.0.1的同位体,但未安装。
npm ERR! npm ERR! Windows_NT 10.0.14393
Windows_NT 10.0.14393
npm ERR! npm ERR! argv "C:\\\\Program Files\\\\nodejs\\\\node.exe" "C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js" "install" "-g" "angular-cli"
argv“ C:\\\\ Program Files \\\\ nodejs \\\\ node.exe”“ C:\\\\ Program Files \\\\ nodejs \\\\ node_modules \\\\ npm \\\\ bin \\\\ npm-cli.js”“安装”“ -g “” angular-cli“
npm ERR! npm ERR! node v7.5.0
节点v7.5.0
npm ERR! npm ERR! npm v4.1.2
npm v4.1.2
npm ERR! npm ERR! path C:\\Users\\Chiranjeevi\\AppData\\Roaming\\npm\\node_modules\\.staging\\yallist-2cab1649\\package.json.797219503
路径C:\\ Users \\ Chiranjeevi \\ AppData \\ Roaming \\ npm \\ node_modules \\ .staging \\ yallist-2cab1649 \\ package.json.797219503
npm ERR! npm ERR! code ENOENT
代码ENOENT
npm ERR! npm ERR! errno -4058
埃尔诺-4058
npm ERR! npm ERR! syscall rename
syscall重命名
npm ERR! npm ERR! enoent ENOENT: no such file or directory, rename 'C:\\Users\\Chiranjeevi\\AppData\\Roaming\\npm\\node_modules\\.staging\\yallist-2cab1649\\package.json.797219503' -> 'C:\\Users\\Chiranjeevi\\AppData\\Roaming\\npm\\node_modules\\.staging\\yallist-2cab1649\\package.json'
enoent ENOENT:无此类文件或目录,重命名为'C:\\ Users \\ Chiranjeevi \\ AppData \\ Roaming \\ npm \\ node_modules \\ .staging \\ yallist-2cab1649 \\ package.json.797219503'->'C:\\ Users \\ Chiranjeevi \\ AppData \\漫游\\故宫\\ node_modules \\ .staging \\ yallist-2cab1649 \\的package.json”
npm ERR! npm ERR! enoent ENOENT: no such file or directory, rename 'C:\\Users\\Chiranjeevi\\AppData\\Roaming\\npm\\node_modules\\.staging\\yallist-2cab1649\\package.json.797219503' -> 'C:\\Users\\Chiranjeevi\\AppData\\Roaming\\npm\\node_modules\\.staging\\yallist-2cab1649\\package.json'
enoent ENOENT:无此类文件或目录,重命名为'C:\\ Users \\ Chiranjeevi \\ AppData \\ Roaming \\ npm \\ node_modules \\ .staging \\ yallist-2cab1649 \\ package.json.797219503'->'C:\\ Users \\ Chiranjeevi \\ AppData \\漫游\\故宫\\ node_modules \\ .staging \\ yallist-2cab1649 \\的package.json”
npm ERR! npm ERR! enoent This is most likely not a problem with npm itself
enoent这很可能不是npm本身的问题
npm ERR! npm ERR! enoent and is related to npm not being able to find a file.
enoent,与npm无法找到文件有关。
npm ERR! npm ERR! enoent
ENOENT
npm ERR! npm ERR! Please include the following file with any support request:
请在任何支持请求中包括以下文件:
npm ERR! npm ERR! C:\\Users\\Chiranjeevi\\npm-debug.log
C:\\用户\\赤拉尼维\\ NPM-的debug.log
You should execute npm cache clean
instead of npm clear cache
(see https://docs.npmjs.com/cli/cache ). 您应该执行
npm cache clean
而不是npm clear cache
(请参阅https://docs.npmjs.com/cli/cache )。
Regarding npm WARN @angular/core@2.4.6 requires a peer of rxjs@^5.0.1 but none was installed.
关于
npm WARN @angular/core@2.4.6 requires a peer of rxjs@^5.0.1 but none was installed.
: There is an open angular cli issue concerning rxjs . : 关于rxjs,存在一个开放的角度cli问题 。 As a workaraound, you can execute
npm install -g rxjs
. 作为一项工作,您可以执行
npm install -g rxjs
。
Additionally, the npm package name for angular cli changed from angular-cli to @angular-cli. 此外,angular cli的npm软件包名称已从angular-cli更改为@ angular-cli。
That is, the following might help: npm uninstall -g angular-cli npm cache clean npm install -g rxjs npm install -g @angular/cli
也就是说,以下内容可能会有所帮助:
npm uninstall -g angular-cli npm cache clean npm install -g rxjs npm install -g @angular/cli
Try to run npm clear cache
尝试运行
npm clear cache
and than npm install -g angular-cli
并且比
npm install -g angular-cli
Make sure you have latest Nodejs(LTS version) installed. 确保您已安装最新的Nodejs(LTS版本)。 Try following
尝试跟随
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.