2016-01-14 14 views
9

私はVS Apache Cordova Tools Update 5をダウンロードしています。ノードとNPMに関する問題が発生しています。私はテストのために、デフォルトのブランデーコードバプロジェクトを使用しています。ノードとNPMのアップデートVS Cordovaのアップデート5

バージョン

私は私が手に私のVSプロジェクト内のノードとNPMのためゴクゴクチェックを実行する場合Node version = v0.10.31NPM version = 1.4.9。しかし、私はまた、Node version = v5.4.1NPM version = 3.3.6

問題

私はコルドバCLI 5.3.3を使用して公開するとき、私は私が5.4.1にコルドバCLIを変更すると私が得る enter image description here 次のエラーを取得するがインストールされています次のエラー: enter image description here

私は、[ツール]> [オプション]> [プロジェクトおよびソリューション]> [外部Webツールと、私は次の警告を取得し、パスC:\Program Files (x86)\nodejsを追加し、npm install failedエラーを変更した場合。

npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm 

その他

私はuse global installed versionを選択した場合、私は5.2.0を取得します。 enter image description here

ご協力いただきまして誠にありがとうございます。

ダウンロードの場所とVSコルドバツールのための情報を更新する5 http://microsoft.github.io/vstacoblog/2016/01/13/annoucing-update-5.html

---------------------------アップデート1/15/2015 4:50 PMEST --------------------------

node = 5.4.1のブランデーコードバプロジェクトを公開する場合のビルドログは次のとおりですnode-v5.4.1-x86.msiとNPM = 3.5.3がpackage.jsonを使用してインストールされています。

1>------ Build started: Project: BlankCordovaApp4, Configuration: Debug Android ------ 
1> Your environment has been set up for using Node.js 5.4.1 (ia32) and npm. 
1> ------ Ensuring correct global installation of package from source package directory: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\APACHECORDOVATOOLS\packages\vs-tac 
1> ------ Name from source package.json: vs-tac 
1> ------ Version from source package.json: 1.0.28 
1> ------ Package already installed globally at correct version. 
1> ------ Installing Cordova tools [email protected] for project from npm. This could take a few minutes... 
1> Each package is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies. 
1> npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm 
1> npm ERR! Windows_NT 6.3.9600 
1> npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Users\\DBiele\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "[email protected]" "--loglevel" "warn" 
1> npm ERR! node v5.4.1 
1> npm ERR! npm v3.3.6 
1> 
1> npm ERR! Cannot read property 'localeCompare' of undefined 
1> npm ERR! 
1>MDAVSCLI : npm ERR! If you need help, you may report this error at: 
1> npm ERR!  <https://github.com/npm/npm/issues> 
1> 
1> npm ERR! Please include the following file with any support request: 
1> npm ERR!  C:\Users\DBiele\AppData\Roaming\npm\node_modules\vs-tac\node_modules\cordova\5.4.1\npm-debug.log 
1> [Error: ------ npm install failed. Exit code: 1] 
1> C:\Users\DBiele\AppData\Roaming\npm\node_modules\vs-tac\node_modules\q\q.js:126 
1>      throw e; 
1>     ^
1> 
1>MDAVSCLI : error : ------ npm install failed. Exit code: 1 
1>  at ChildProcess.<anonymous> (C:\Users\DBiele\AppData\Roaming\npm\node_modules\vs-tac\lib\util.js:655:29) 
1>  at emitTwo (events.js:87:13) 
1>  at ChildProcess.emit (events.js:172:7) 
1>  at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) 

ここで私はコルドバnpm install -g cordovaをインストールするには、PowerShellのか、CMDを使用する場合、私は---次のエラー

C:\Users\DBiele>npm install -g cordova 
npm WARN deprecated [email protected]: this package has been reintegrated into npm a 
nd is now out of date with respect to npm 
npm WARN install:isarray ENOENT: no such file or directory, rename 'C:\Users\DBi 
ele\AppData\Roaming\npm\node_modules\cordova\node_modules\buffer\node_modules\is 
array' -> 'C:\Users\DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules 
\buffer\node_modules\isarray' 
npm WARN install:negotiator ENOENT: no such file or directory, rename 'C:\Users\ 
DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules\express\node_module 
s\negotiator' -> 'C:\Users\DBiele\AppData\Roaming\npm\node_modules\cordova\node_ 
modules\express\node_modules\negotiator' 
npm WARN install:vary ENOENT: no such file or directory, rename 'C:\Users\DBiele 
\AppData\Roaming\npm\node_modules\cordova\node_modules\express\node_modules\vary 
' -> 'C:\Users\DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules\expr 
ess\node_modules\vary' 
npm WARN install:object-assign ENOENT: no such file or directory, rename 'C:\Use 
rs\DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules\got\node_modules 
\object-assign' -> 'C:\Users\DBiele\AppData\Roaming\npm\node_modules\cordova\nod 
e_modules\got\node_modules\object-assign' 
npm WARN install:convert-source-map ENOENT: no such file or directory, rename 'C 
:\Users\DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules\insert-modu 
le-globals\node_modules\convert-source-map' -> 'C:\Users\DBiele\AppData\Roaming\ 
npm\node_modules\cordova\node_modules\insert-module-globals\node_modules\convert 
-source-map' 
npm WARN install:graceful-fs ENOENT: no such file or directory, rename 'C:\Users 
\DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules\write-file-atomic\ 
node_modules\graceful-fs' -> 'C:\Users\DBiele\AppData\Roaming\npm\node_modules\c 
ordova\node_modules\read-package-json\node_modules\graceful-fs' 
npm WARN install:deep-extend ENOENT: no such file or directory, rename 'C:\Users 
\DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules\registry-url\node_ 
modules\deep-extend' -> 'C:\Users\DBiele\AppData\Roaming\npm\node_modules\cordov 
a\node_modules\registry-url\node_modules\deep-extend' 
npm WARN install:strip-json-comments ENOENT: no such file or directory, rename ' 
C:\Users\DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules\registry-u 
rl\node_modules\strip-json-comments' -> 'C:\Users\DBiele\AppData\Roaming\npm\nod 
e_modules\cordova\node_modules\registry-url\node_modules\strip-json-comments' 
npm WARN install:mime-types ENOENT: no such file or directory, rename 'C:\Users\ 
DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules\request\node_module 
s\mime-types' -> 'C:\Users\DBiele\AppData\Roaming\npm\node_modules\cordova\node_ 
modules\request\node_modules\mime-types' 
npm WARN install:qs ENOENT: no such file or directory, rename 'C:\Users\DBiele\A 
ppData\Roaming\npm\node_modules\cordova\node_modules\request\node_modules\qs' -> 
'C:\Users\DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules\request\ 
node_modules\qs' 
[email protected] node_modules\cordova\node_modules\buffer\node_modules\isarray -> n 
ode_modules\cordova\node_modules\buffer\node_modules\isarray 
[email protected] node_modules\cordova\node_modules\express\node_modules\negotiat 
or -> node_modules\cordova\node_modules\express\node_modules\negotiator 
[email protected] node_modules\cordova\node_modules\express\node_modules\accepts -> 
node_modules\cordova\node_modules\express\node_modules\accepts 
[email protected] node_modules\cordova\node_modules\express\node_modules\vary -> node_m 
odules\cordova\node_modules\express\node_modules\vary 
[email protected] node_modules\cordova\node_modules\got\node_modules\object-as 
sign -> node_modules\cordova\node_modules\got\node_modules\object-assign 
[email protected] node_modules\cordova\node_modules\insert-module-globals 
\node_modules\convert-source-map -> node_modules\cordova\node_modules\insert-mod 
ule-globals\node_modules\convert-source-map 
[email protected] node_modules\cordova\node_modules\write-file-atomic\node_modul 
es\graceful-fs -> node_modules\cordova\node_modules\read-package-json\node_modul 
es\graceful-fs 
[email protected] node_modules\cordova\node_modules\registry-url\node_modules\de 
ep-extend -> node_modules\cordova\node_modules\registry-url\node_modules\deep-ex 
tend 
[email protected] node_modules\cordova\node_modules\registry-url\node_mo 
dules\strip-json-comments -> node_modules\cordova\node_modules\registry-url\node 
_modules\strip-json-comments 
[email protected] node_modules\cordova\node_modules\request\node_modules\mime-typ 
es -> node_modules\cordova\node_modules\request\node_modules\mime-types 
[email protected] node_modules\cordova\node_modules\request\node_modules\qs -> node_modul 
es\cordova\node_modules\request\node_modules\qs 
[email protected] node_modules\cordova\node_modules\cordova-lib\node_module 
s\request\node_modules\bl\node_modules\readable-stream -> node_modules\cordova\n 
ode_modules\browser-pack\node_modules\readable-stream 
[email protected] node_modules\cordova\node_modules\cordova-lib\node_modules\request\node 
_modules\bl -> node_modules\cordova\node_modules\bl 
[email protected] node_modules\cordova\node_modules\cordova-lib\node_modules\reques 
t -> node_modules\cordova\node_modules\request 
[email protected] node_modules\cordova\node_modules\cordova-lib\node_modules\npmconf 
-> node_modules\cordova\node_modules\npmconf 
[email protected] node_modules\cordova\node_modules\cordova-lib\node_modules\glob -> no 
de_modules\cordova\node_modules\glob 
[email protected] node_modules\cordova\node_modules\cordova-lib\node_modules\tar -> node 
_modules\cordova\node_modules\tar 
- C:\Users\DBiele\AppData\Roaming\npm\node_modules\cordova\node_modules\write-fi 
le-atomic node_modules\cordova\node_modules\write-file-atomic 
C:\Users\DBiele\AppData\Roaming\npm 
└── (empty) 

npm ERR! code 1 

を取得

1>------ Build started: Project: BlankCordovaApp4, Configuration: Debug Android ------ 
1> Your environment has been set up for using Node.js 5.4.1 (ia32) and npm. 
1> ------ Ensuring correct global installation of package from source package directory: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\APACHECORDOVATOOLS\packages\vs-tac 
1> ------ Name from source package.json: vs-tac 
1> ------ Version from source package.json: 1.0.28 
1> ------ Package not currently installed globally. 
1> ------ Installing globally from source package. This could take a few minutes... 
1> Each package is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies. 
1> npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm 
1> npm WARN engine [email protected]: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"5.4.1","npm":"3.3.6"}) 
1> C:\Users\DBiele\AppData\Roaming\npm\vs-tac-cli -> C:\Users\DBiele\AppData\Roaming\npm\node_modules\vs-tac\vs-tac-cli.cmd 
1> > [email protected] install C:\Users\DBiele\AppData\Roaming\npm\node_modules\vs-tac\node_modules\edge 
1> > node tools/install.js 
1> *************************************** 
1> [Error: The edge module has not been pre-compiled for node.js version v5.4.1. You must build a custom version of edge.node. Please refer to https://github.com/tjanczuk/edge for building instructions.] 
1> *************************************** 
1> Success: platform check for edge.js: node.js ia32 v5.4.1 
1> C:\Users\DBiele\AppData\Roaming\npm 
1> └─┬ [email protected] 
1> ├── [email protected] 
1> ├─┬ [email protected] 
1> │ ├── [email protected] 
1> │ └── [email protected] 
1> ├─┬ [email protected] 
1> │ └── [email protected] 
1> ├─┬ [email protected] 
1> │ ├── [email protected] 
1> │ └── [email protected] 
1> ├── [email protected] 
1> ├── [email protected] 
1> ├─┬ [email protected] 
1> │ ├── [email protected] 
1> │ └── word[email protected] 
1> ├─┬ [email protected] 
1> │ ├─┬ [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├─┬ [email protected] 
1> │ │ │ ├─┬ [email protected] 
1> │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ └── [email protected] 
1> │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ │ ├── [email protected] 
1> │ │ │ │ │ │ ├── [email protected] 
1> │ │ │ │ │ │ └─┬ [email protected] 
1> │ │ │ │ │ │ └── [email protected] 
1> │ │ │ │ │ └─┬ [email protected] 
1> │ │ │ │ │ ├── [email protected] 
1> │ │ │ │ │ └── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ └── [email protected] 
1> │ │ │ │ ├─┬ b[email protected] 
1> │ │ │ │ │ ├── [email protected] 
1> │ │ │ │ │ └── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ │ ├── [email protected] 
1> │ │ │ │ │ │ ├── [email protected] 
1> │ │ │ │ │ │ └── [email protected] 
1> │ │ │ │ │ └── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ │ ├── [email protected] 
1> │ │ │ │ │ │ └── [email protected] 
1> │ │ │ │ │ └── [email protected] 
1> │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ ├── [email protected] 
1> │ │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ │ ├── [email protected] 
1> │ │ │ │ │ │ ├── [email protected] 
1> │ │ │ │ │ │ └── [email protected] 
1> │ │ │ │ │ └── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ └─┬ [email protected] 
1> │ │ │ │ │ ├── [email protected] 
1> │ │ │ │ │ └── [email protected] 
1> │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ └── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ │ └─┬ [email protected] 
1> │ │ │ │ │ │ └── [email protected] 
1> │ │ │ │ │ └── [email protected] 
1> │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ └── [email protected] 
1> │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ │ │ ├── [email protected] 
1> │ │ │ │ │ │ │ ├── [email protected] 
1> │ │ │ │ │ │ │ ├── [email protected] 
1> │ │ │ │ │ │ │ └─┬ [email protected] 
1> │ │ │ │ │ │ │ └── [email protected] 
1> │ │ │ │ │ │ └── [email protected] 
1> │ │ │ │ │ └── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ └── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ └── [email protected] 
1> │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ └── [email protected] 
1> │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ │ ├── [email protected] 
1> │ │ │ │ │ │ ├── [email protected] 
1> │ │ │ │ │ │ └── [email protected] 
1> │ │ │ │ │ └─┬ [email protected] 
1> │ │ │ │ │ └── [email protected] 
1> │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ └── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ │ ├── [email protected] 
1> │ │ │ │ │ │ └── [email protected] 
1> │ │ │ │ │ └─┬ [email protected] 
1> │ │ │ │ │ └─┬ [email protected] 
1> │ │ │ │ │  ├─┬ [email protected] 
1> │ │ │ │ │  │ └── [email protected] 
1> │ │ │ │ │  └─┬ [email protected] 
1> │ │ │ │ │  └── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ └─┬ [email protected] 
1> │ │ │ │ └── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ └─┬ [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├─┬ [email protected] 
1> │ │ │ │ └── [email protected] 
1> │ │ │ ├─┬ [email protected] 
1> │ │ │ │ └── [email protected] 
1> │ │ │ └── [email protected] 
1> │ │ ├─┬ [email protected] 
1> │ │ │ └── [email protected] 
1> │ │ ├─┬ [email protected] 
1> │ │ │ └── [email protected] 
1> │ │ ├─┬ [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ └─┬ [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ └── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├─┬ [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├─┬ [email protected] 
1> │ │ │ │ └── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ └─┬ [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├─┬ [email protected] 
1> │ │ │ │ └─┬ [email protected] 
1> │ │ │ │ └── [email protected] 
1> │ │ │ ├─┬ [email protected] 
1> │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ └── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ └─┬ [email protected] 
1> │ │ │ │ └── [email protected] 
1> │ │ │ ├─┬ [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ └── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ └── [email protected] 
1> │ │ ├─┬ [email protected] 
1> │ │ │ ├─┬ [email protected] 
1> │ │ │ │ └── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├─┬ [email protected] 
1> │ │ │ │ └── [email protected] 
1> │ │ │ └── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├─┬ [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ └── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├─┬ [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ └─┬ [email protected] 
1> │ │ │ └── [email protected] 
1> │ │ ├─┬ [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├─┬ [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ └─┬ [email protected] 
1> │ │ │ │ └── [email protected] 
1> │ │ │ ├─┬ [email protected] 
1> │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ └── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ └─┬ [email protected] 
1> │ │ │ │ └── [email protected] 
1> │ │ │ ├─┬ [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ └── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ └── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├─┬ [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├─┬ [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ └── [email protected] 
1> │ │ │ └── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ └─┬ [email protected] 
1> │ │ ├── [email protected] 
1> │ │ └── [email protected] 
1> │ ├─┬ [email protected] 
1> │ │ └── [email protected] 
1> │ ├─┬ [email protected] 
1> │ │ ├─┬ [email protected] 
1> │ │ │ └── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├─┬ [email protected] 
1> │ │ │ └── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├─┬ [email protected] 
1> │ │ │ └── [email protected] 
1> │ │ ├─┬ [email protected] 
1> │ │ │ └── [email protected] 
1> │ │ ├─┬ [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├─┬ [email protected] 
1> │ │ │ │ └─┬ [email protected] 
1> │ │ │ │ └── [email protected] 
1> │ │ │ ├─┬ [email protected] 
1> │ │ │ │ ├─┬ [email protected] 
1> │ │ │ │ │ └── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ └─┬ [email protected] 
1> │ │ │ │ └── [email protected] 
1> │ │ │ ├─┬ [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ ├── [email protected] 
1> │ │ │ │ └── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ └── [email protected] 
1> │ │ ├─┬ [email protected] 
1> │ │ │ └── [email protected] 
1> │ │ └─┬ [email protected] 
1> │ │ └── [email protected] 
1> │ ├── [email protected] 
1> │ ├─┬ [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ └── [email protected] 
1> │ └── [email protected] 
1> ├── [email protected] 
1> ├─┬ [email protected] 
1> │ ├── [email protected] 
1> │ ├── [email protected] 
1> │ ├─┬ [email protected] 
1> │ │ ├── [email protected] 
1> │ │ └─┬ [email protected] 
1> │ │ └── [email protected] 
1> │ ├─┬ [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ └── [email protected] 
1> │ ├─┬ [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ └── [email protected] 
1> │ ├── [email protected] 
1> │ ├── [email protected] 
1> │ ├── [email protected] 
1> │ ├── [email protected] 
1> │ ├── [email protected] 
1> │ ├── [email protected] 
1> │ └── [email protected] 
1> ├── [email protected] 
1> ├─┬ [email protected] 
1> │ ├── [email protected] 
1> │ ├── [email protected] 
1> │ ├── [email protected] 
1> │ ├─┬ [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├─┬ [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ ├── [email protected] 
1> │ │ │ └── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├─┬ [email protected] 
1> │ │ │ └── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ ├── [email protected] 
1> │ │ └─┬ [email protected] 
1> │ │ └── [email protected] 
1> │ ├── [email protected] 
1> │ ├── [email protected] 
1> │ └─┬ [email protected] 
1> │ └─┬ [email protected] 
1> │  └─┬ [email protected] 
1> │  └── [email protected] 
1> ├── [email protected] 
1> └─┬ [email protected] 
1>  └── [email protected] 
1> ------ npm install of [email protected] from C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\APACHECORDOVATOOLS\packages\vs-tac completed. 
1> ------ Installing Cordova tools [email protected] for project from npm. This could take a few minutes... 
1> Each package is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies. 
1> npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm 
1> npm ERR! Windows_NT 6.3.9600 
1> npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Users\\DBiele\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "[email protected]" "--loglevel" "warn" 
1> npm ERR! node v5.4.1 
1> npm ERR! npm v3.3.6 
1> 
1> npm ERR! Cannot read property 'localeCompare' of undefined 
1> npm ERR! 
1>MDAVSCLI : npm ERR! If you need help, you may report this error at: 
1> npm ERR!  <https://github.com/npm/npm/issues> 
1> 
1> npm ERR! Please include the following file with any support request: 
1> npm ERR!  C:\Users\DBiele\AppData\Roaming\npm\node_modules\vs-tac\node_modules\cordova\5.4.1\npm-debug.log 
1> [Error: ------ npm install failed. Exit code: 1] 
1> C:\Users\DBiele\AppData\Roaming\npm\node_modules\vs-tac\node_modules\q\q.js:126 
1>      throw e; 
1>     ^
1> 
1>MDAVSCLI : error : ------ npm install failed. Exit code: 1 
1>  at ChildProcess.<anonymous> (C:\Users\DBiele\AppData\Roaming\npm\node_modules\vs-tac\lib\util.js:655:29) 
1>  at emitTwo (events.js:87:13) 
1>  at ChildProcess.emit (events.js:172:7) 
1>  at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) 
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== 
========== Deploy: 0 succeeded, 0 failed, 0 skipped ========== 

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== 
========== Deploy: 0 succeeded, 0 failed, 0 skipped ========== 

別のビルドログは、NPM 3.5.3を取り除いた後だclearing cordova cachenpm cache clean ----------------------------更新2 1/15/2016 --------------- --------- これが表示されます働いている!私はnpm -g install npmにMichael Braudeのコメントを使用しています。ローミング中NPMフォルダを削除することにより、add and remove programs

  • 削除NPMを使用して

    1. 削除ノード:

      しかし、修正前に私は次のようでした。

    2. npm -g install npmを使用した後、私は5.4.1 - 64 bitnodeを更新VS2015

    を修理し、私はまた、NPM 3.5.4が働いたとnpm -g install [email protected]を使用し、それが働いたことを確認するチェックしました。

    はまた、私は> [オプション]> [プロジェクトおよびソリューション]> [外部WebツールツールにC:\Program Files (x86)\nodejsを追加することにより、ノードおよびNPMのサンドボックス(と思う?)のバージョンを変更しenter image description here

    私は今、私の一気のタスクを実行することができていますTask Runner Explorerを使用してエラーを表示しないでください。それが機能し続ける指を渡す!

  • 答えて

    15

    問題は、ノードの「最新の安定」バージョンにバンドルされているNPMのバージョンが適切に私たちのNPMパッケージの一部をインストールしていないということです。これを修正するには、コマンドプロンプトを開き、以下を実行します。

    npm -g install npm 
    

    npmを最新バージョンに更新します。これで問題は解決するはずです。

    編集2/5/2016 - この問題を修正するリリース6がリリースされました。詳細は私たちのブログを参照してください:http://microsoft.github.io/vstacoblog/2016/02/04/announcing-update-6.html

    (情報開示:私は、Visual StudioでのApache Cordovaのためのツールで作業)

    +0

    あなたの仕事のおかげで - 時間があれば、[Update 6は他のものを壊しているようだ](http://stackoverflow.com/q/35393247/304683).. – EdSF

    +1

    問題を報告してくれてありがとうアップデート6!アップデート7はそれらを修正しています。http://microsoft.github.io/vstacoblog/2016/03/01/announcing-update-7.html –

    3

    npm deprecated npmconfのように見えますが、パッケージによっては依然として依存している可能性があるため、自動的には削除されません。私のコルドバは、コルドバをnmpconfをアンインストールしてから更新した後、再び実行します:

    npm uninstall -g npmconf 
    npm install -g cordova 
    
    +0

    ありがとうございました。残念ながら、 'npm install -g cordova'を実行するとエラーが発生します。「npm ERR!コード1 '。これに基づいて、ノードまたはnpmに問題があると思いますか? –

    7

    わかりました、私はこの作業を取得するためのものの組み合わせをしなければなりませんでした。

    まず、vs-tacはノードv5と互換性がないエッジv4を使用するため、vs-tac package.jsonファイルを編集してv4ではなくv5を参照するようにする必要があります。あなたのマイレージは異なる場合があります)

    次のようにMichael Braudeが言いましたが、これも必要です。

    npm -g install npm 
    

    最後に、これでvs-tacを再インストールできるはずです。

    npm install -g "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\Packages\vs-tac" 
    

    この結果がエラーでない場合、ファイルvstac_installing.tmpがあなたのグローバルnode_modulesフォルダから削除されていることをダブルチェック(C:\ユーザー\ myuserの\のAppData \ローミング\ NPM \ node_modules) - 私が持っていました私のマシン上で手動で削除してください。

    結局、私のhello worldプロジェクトが最終的にエミュレータで動作します!

    幸運...

    +0

    アップデート6でこれを修正しました。http://microsoft.githubを参照してください。詳細については、io/vstacoblog/2016/02/04/announcing-update-6.htmlを参照してください。 –