質問編集履歴

5

追記・・・ソースを編集してみました。

2018/09/12 13:19

投稿

ironvc
ironvc

スコア6

test CHANGED
File without changes
test CHANGED
@@ -101,3 +101,23 @@
101
101
  };
102
102
 
103
103
  ```
104
+
105
+
106
+
107
+ 2018/09/12 22:16追記
108
+
109
+
110
+
111
+ fs.exists(path.resolve(path.join(projectDir, 'package.json')), function(exists) {
112
+
113
+ if (exists)
114
+
115
+
116
+
117
+ fs.exists(path.resolve(path.join(projectDir, 'package.json')), function(exists) {
118
+
119
+ if (!exists)
120
+
121
+ に変更してみると
122
+
123
+ project created successfullyとなりましたが、これが根本的な解決になっているか不明のため、調査致します。

4

ファイル名明記

2018/09/12 13:19

投稿

ironvc
ironvc

スコア6

test CHANGED
File without changes
test CHANGED
@@ -42,7 +42,7 @@
42
42
 
43
43
  monaca cliをインストールしなおすのは昨日試してみました。
44
44
 
45
- これに引っかかってメッセージ表示されているようです。
45
+ monaca.jsのこれに引っかかってメッセージ表示されているようです。
46
46
 
47
47
 
48
48
 

3

調査内容追記

2018/09/12 12:51

投稿

ironvc
ironvc

スコア6

test CHANGED
File without changes
test CHANGED
@@ -41,3 +41,63 @@
41
41
 
42
42
 
43
43
  monaca cliをインストールしなおすのは昨日試してみました。
44
+
45
+ これに引っかかってメッセージ表示されているようです。
46
+
47
+
48
+
49
+ ```monaca.js
50
+
51
+ /**
52
+
53
+ * @method
54
+
55
+ * @memberof Monaca
56
+
57
+ * @description
58
+
59
+ * Installs the template's dependencies.
60
+
61
+ * @param {String} Project's Directory
62
+
63
+ * @return {Promise}
64
+
65
+ */
66
+
67
+ Monaca.prototype.installTemplateDependencies = function(projectDir) {
68
+
69
+ var deferred = Q.defer();
70
+
71
+
72
+
73
+ fs.exists(path.resolve(path.join(projectDir, 'package.json')), function(exists) {
74
+
75
+ if (exists) {
76
+
77
+ process.stdout.write('Installing template dependencies...\n');
78
+
79
+ this._npmInstall(projectDir).then(
80
+
81
+ deferred.resolve.bind(null, projectDir),
82
+
83
+ deferred.reject.bind(null, 'Failed to install template dependencies')
84
+
85
+ );
86
+
87
+ }
88
+
89
+ else {
90
+
91
+ deferred.resolve(projectDir);
92
+
93
+ }
94
+
95
+ }.bind(this));
96
+
97
+
98
+
99
+ return deferred.promise;
100
+
101
+ };
102
+
103
+ ```

2

別メッセージ表示と試したこと追記

2018/09/12 12:50

投稿

ironvc
ironvc

スコア6

test CHANGED
File without changes
test CHANGED
@@ -25,3 +25,19 @@
25
25
  どうすればよろしいでしょうか。
26
26
 
27
27
  よろしくお願い致します。
28
+
29
+
30
+
31
+ 2018/9/12追記
32
+
33
+ 今日再度試してみたところ
34
+
35
+ faild to install templete dependencies
36
+
37
+ と別のエラーでプロジェクトが作成できませんでした。
38
+
39
+ npm やnode.jsを取り直してみます。
40
+
41
+
42
+
43
+ monaca cliをインストールしなおすのは昨日試してみました。

1

タイトル不備

2018/09/12 10:58

投稿

ironvc
ironvc

スコア6

test CHANGED
@@ -1 +1 @@
1
- monaca cliでAngular2 projectを作成できない
1
+ monaca cliでローカルにprojectを作成できない
test CHANGED
File without changes