2017-06-19 128 views
0

我已经安装nodejs 8但得到这些错误。真的stucked PLZ先回答离子/科尔多瓦安装错误win10

C:\Users\Muna\Ionic>npm install -g cordova 

NPM WARN弃用[email protected]:使用UUID模块代替

NPM WARN可选SKIPPING可选的依赖:证实NPM-包[email protected]。 1(node_modules \ cordova \ node_modules \ validate-npm-package-license):

npm警告enoent跳过可选的依赖:ENOENT:没有这样的文件或目录,utime'C:\ Users \ Muna \ AppData \ Roaming \ npm \ node_modules.staging \ validate-npm-package-license-daa56318 \ LICENSE'

NPM WARN可选SKIPPING可选依赖:[email protected](node_modules \科尔多瓦\ node_modules \科尔多瓦-JS):

NPM WARN ENOENT跳绳可选依赖:ENOENT:没有这样的文件或目录,UTIME 'C:\ Users \ Muna \ AppData \ Roaming \ npm \ node_modules.staging \ cordova -js-4a835737 \ test \ test.urlutil.js'

npm WARN可选SKIPPING可选依赖:[email protected](node_modules \ cordova \ node_modules \ express):

npm警告enoent跳过可选的依赖:ENOENT:没有这样的文件或目录,utime'C:\ Users \ Muna \ AppData \ Roaming \ npm \ node_mo dules.staging \快递-2ec03f1c \ History.md”

NPM WARN可选SKIPPING可选依赖:[email protected](node_modules \科尔多瓦\ node_modules \简单的plist \ node_modules \ plist中):

NPM WARN ENOENT:没有这样的文件或目录,utime'C:\ Users \ Muna \ AppData \ Roaming \ npm \ node_modules.staging \ plist-7947​​d2c9 \ dist \ plist-parse.js'

npm WARN可选SKIPPING OPTIONAL DEPENDENCY:[email protected](node_modules \ cordova \ node_modules \ cordova-lib \ node_modules \ plist):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY:ENOENT:没有这样的文件或目录,utime'C:\ Users \ Muna \ AppData \ Roaming \ npm \ node_modules.staging \ plist-dcf4d866 \ dist \ plist.js'

npm警告可选SKIPPING可选依赖: [email protected](node_modules \科尔多瓦\ node_modules \科尔多瓦取\ node_modules \ shelljs):

NPM WARN ENOENT跳绳可选依赖:ENOENT:没有这样的文件或目录,UTIME“C:\用户\穆纳\应用程序数据\ Roaming \ npm \ node_modules.staging \ shelljs-0c2f6ee0 \ CHANGELOG.md'

npm ERR!代码EINTEGRITY

npm ERR! sha1-wDv04BywhtW15azorQr + eInWOMM =使用sha1时完整性校验和失败:想要sha1-wDv04BywhtW15azorQr + eInWOMM =但得到sha1-19b + iGSs/lBl8/MlbaD2iJRtf/g =。 (2239字节)

npm ERR!此运行的完整日志可在以下位置找到:

npm ERR! C:\ Users \用户穆纳\应用程序数据\漫游\ NPM-cache_logs \ 2017-06-19T03_20_22_610Z调试。日志

+0

请删除angularjs标签,因为它与您的问题无关。 –

+0

看起来像一个不好的下载。清除你的npm_modues并尝试一下。在你的问题中提到要清除的目录。 –

回答

0

我在安装另一个应用程序时遇到了同样的错误, 花了5个小时后我发现了两个可能的解决方案。第一个为我工作。

  1. npm install [email protected] -g
  2. npm cache clean --forcenpm cache verify

希望它能帮助!