npm install -g cordova和ionic 2错误 [英] npm install -g cordova and ionic 2 error

查看:2774
本文介绍了npm install -g cordova和ionic 2错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想安装离子2一段时间,我不成功。
当我安装cordova通过cmd命令npm install -g cordova
我得到这个错误



npm ERR! Windows_NT 10.0.14393npm错误! argvC:\\Program Files\\\\
odejs\\\\
ode.exeC:\\Users\\Adir\\AppData\\Roaming\\ npm\\\\
ode_modules\\\\
pm\\bin\\\\
pm-cli.jsinstall-gcordovanpm ERR! node v4.5.0npm ERR! npm v3.10.7npm ERR!路径C:\Users\Adir\AppData\Roaming\\\
pm\\\
ode_modules\.staging\abbrev-ed18b12bnpm ERR!代码ENOENTnpm错误! errno -4058npm ERR! syscall renamenpm错误! enoent ENOENT:没有这样的文件或目录,重命名'C:\Users\Adir\AppData\Roaming\\\
pm\\\
ode_modules\.staging\abbrev-ed18b12b' - > 'C:\Users\Adir\AppData\Roaming\\\
pm\\\
ode_modules\cordova\\\
ode_modules\\\
pm\\\
ode_modules\abbrev'npm ERR! enoent ENOENT:没有这样的文件或目录,重命名'C:\Users\Adir\AppData\Roaming\\\
pm\\\
ode_modules\.staging\abbrev-ed18b12b' - > 'C:\Users\Adir\AppData\Roaming\\\
pm\\\
ode_modules\cordova\\\
ode_modules\\\
pm\\\
ode_modules\abbrev'npm ERR! enoent这很可能不是一个问题,npm本身npm错误! enoent与npm无法找到file.npm相关的错误! enoentnpm错误!请包含任何支持请求的以下文件:npm ERR! C:\Users\Adir\\\
pm-debug.lognpm ERR!当我通过此命令安装ionic时,代码1



npm install - g ion
我得到这个错误

  npm WARN在ionic@2.0.0中用semver替换semver的捆绑版本@ 4.2.0 

npm WARN在ionic@2.0.0替换bundle-app-lib with ionic-app-lib@2.0.0
npm ERR! Windows_NT 10.0.14393
npm ERR! argvC:\Program Files\\\
odejs\\\
ode.exeC:\Users\Adir\AppData\Roaming\\\
pm\\\
ode_modules\\\
pm\bin\\\
pm-cli。 jsinstall-gionic
npm ERR! node v4.5.0
npm ERR! npm v3.10.7
npm ERR!路径C:\Users\Adir\AppData\Roaming\\\
pm\\\
ode_modules.staging\ansi-75d35ef1
npm ERR!代码ENOENT
npm ERR! errno -4058
npm ERR!系统调用重命名



npm ERR! enoent ENOENT:no such file or directory,rename'C:\Users\Adir\AppData\Roaming\\\
pm\\\
ode_modules.staging\ansi-75d35ef1' - >'C:\Users\Adir \AppData\Roaming\\\
pm\\\
ode_modules\ionic\\\
ode_modules\cordova-lib\\\
ode_modules\ansi'
npm ERR! enoent ENOENT:no such file or directory,rename'C:\Users\Adir\AppData\Roaming\\\
pm\\\
ode_modules.staging\ansi-75d35ef1' - >'C:\Users\Adir \AppData\Roaming\\\
pm\\\
ode_modules\ionic\\\
ode_modules\cordova-lib\\\
ode_modules\ansi'
npm ERR! enoent这很可能不是npm本身的问题
npm ERR! enoent并且与npm无法找到一个文件相关。
npm ERR! enoent



npm ERR!请包含任何支持请求的以下文件:
npm ERR! C:\Users\Adir\\\
pm-debug.log
npm ERR!代码1

解决方案

校验和失败npm ERR! shasum检查失败



您可以尝试升级到最新版本的npm:

  npm install -g npm 

升级到npm 3。



另外:

  npm cache clean 
pre>

  code> 

设置注册表 https: //registry.npmjs.org/


I'm trying to install ionic 2 for some hours and I don't succee. while I'm install cordova by cmd with the command "npm install -g cordova" I get this error

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Adir\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova"
npm ERR! node v4.5.0
npm ERR! npm  v3.10.7
npm ERR! path C:\Users\Adir\AppData\Roaming\npm\node_modules\.staging\abbrev-ed18b12b
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Adir\AppData\Roaming\npm\node_modules\.staging\abbrev-ed18b12b' -> 'C:\Users\Adir\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev'
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Adir\AppData\Roaming\npm\node_modules\.staging\abbrev-ed18b12b' -> 'C:\Users\Adir\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Adir\npm-debug.log
npm ERR! code 1

when i install ionic by this command "npm install -g ionic" I get this error

npm WARN In ionic@2.0.0 replacing bundled version of semver with semver@4.2.0

npm WARN In ionic@2.0.0 replacing bundled version of ionic-app-lib with ionic-app-lib@2.0.0 npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\Adir\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "-g" "ionic" npm ERR! node v4.5.0 npm ERR! npm v3.10.7 npm ERR! path C:\Users\Adir\AppData\Roaming\npm\node_modules.staging\ansi-75d35ef1 npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Adir\AppData\Roaming\npm\node_modules.staging\ansi-75d35ef1' -> 'C:\Users\Adir\AppData\Roaming\npm\node_modules\ionic\node_modules\cordova-lib\node_modules\ansi' npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Adir\AppData\Roaming\npm\node_modules.staging\ansi-75d35ef1' -> 'C:\Users\Adir\AppData\Roaming\npm\node_modules\ionic\node_modules\cordova-lib\node_modules\ansi' npm ERR! enoent This is most likely not a problem with npm itself npm ERR! enoent and is related to npm not being able to find a file. npm ERR! enoent

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\Adir\npm-debug.log npm ERR! code 1

解决方案

The checksum failed npm ERR! shasum check failed

You can try upgrading to the latest version of npm :

npm install -g npm 

To upgrade to npm 3.

Also :

npm cache clean

and

enter code here

npm set registry https://registry.npmjs.org/

这篇关于npm install -g cordova和ionic 2错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆