質問編集履歴

2

回答を受けての追加②

2018/04/05 00:51

投稿

kazoogon
kazoogon

スコア281

test CHANGED
File without changes
test CHANGED
@@ -117,3 +117,45 @@
117
117
  ```
118
118
 
119
119
  また```find -name "cross-env.js" -type f```で検索しても何もでてきませんでした。
120
+
121
+
122
+
123
+ <<回答を受けて②>>
124
+
125
+ 単純にcross-envをinstallしてみました。
126
+
127
+ が、しかし今だにnpm run dev, npm run watch実行後は```sh: 1: cross-env: not found```のままですね。。
128
+
129
+ ```
130
+
131
+ vagrant@homestead:~/code/school$ npm install cross-env --save --no-bin-links
132
+
133
+ npm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
134
+
135
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: assert-plus@1.0.0 (node_modules/fsevents/node_modules/dashdash/node_modules/assert-plus):
136
+
137
+ npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/code/school/node_modules/fsevents/node_modules/dashdash/node_modules/assert-plus/package.json.1110259093'
138
+
139
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: assert-plus@1.0.0 (node_modules/fsevents/node_modules/getpass/node_modules/assert-plus):
140
+
141
+ npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/code/school/node_modules/fsevents/node_modules/getpass/node_modules/assert-plus/package.json.1816258176'
142
+
143
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
144
+
145
+ npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
146
+
147
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: assert-plus@1.0.0 (node_modules/fsevents/node_modules/sshpk/node_modules/assert-plus):
148
+
149
+ npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/code/school/node_modules/fsevents/node_modules/sshpk/node_modules/assert-plus/package.json.4166844666'
150
+
151
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@1.2.0 (node_modules/fsevents/node_modules/rc/node_modules/minimist):
152
+
153
+ npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/code/school/node_modules/fsevents/node_modules/rc/node_modules/minimist/package.json.3366993945'
154
+
155
+
156
+
157
+ + cross-env@5.1.4
158
+
159
+ added 1 package in 41.555s
160
+
161
+ ```

1

回答を受けての追加

2018/04/05 00:51

投稿

kazoogon
kazoogon

スコア281

test CHANGED
File without changes
test CHANGED
@@ -59,3 +59,61 @@
59
59
  ```
60
60
 
61
61
  しかし結果は同じ。またhttps://github.com/fullstackreact/react-gen-generator/issues/4 このサイトも参考にしてみましたが、効果は有りませんでした。npmの知識がまだ疎しくここで止まってしまっています。回答よろしくお願いいたします。
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+ <<回答を受けて>>
70
+
71
+ npm install --save-dev cross-envを実行しました所こうエラーが出ました。
72
+
73
+ ```
74
+
75
+ vagrant@homestead:~/code/school$ npm install --save-dev cross-env
76
+
77
+ npm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
78
+
79
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: assert-plus@1.0.0 (node_modules/fsevents/node_modules/dashdash/node_modules/assert-plus):
80
+
81
+ npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/code/school/node_modules/fsevents/node_modules/dashdash/node_modules/assert-plus/package.json.4201104718'
82
+
83
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: assert-plus@1.0.0 (node_modules/fsevents/node_modules/getpass/node_modules/assert-plus):
84
+
85
+ npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/code/school/node_modules/fsevents/node_modules/getpass/node_modules/assert-plus/package.json.670411067'
86
+
87
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
88
+
89
+ npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
90
+
91
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@1.2.0 (node_modules/fsevents/node_modules/rc/node_modules/minimist):
92
+
93
+ npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/code/school/node_modules/fsevents/node_modules/rc/node_modules/minimist/package.json.2754480345'
94
+
95
+ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: assert-plus@1.0.0 (node_modules/fsevents/node_modules/sshpk/node_modules/assert-plus):
96
+
97
+ npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/code/school/node_modules/fsevents/node_modules/sshpk/node_modules/assert-plus/package.json.36804433'
98
+
99
+
100
+
101
+ npm ERR! path ../cross-env/dist/bin/cross-env.js
102
+
103
+ npm ERR! code EPROTO
104
+
105
+ npm ERR! errno -71
106
+
107
+ npm ERR! syscall symlink
108
+
109
+ npm ERR! EPROTO: protocol error, symlink '../cross-env/dist/bin/cross-env.js' -> '/home/vagrant/code/school/node_modules/.bin/cross-env'
110
+
111
+
112
+
113
+ npm ERR! A complete log of this run can be found in:
114
+
115
+ npm ERR! /home/vagrant/.npm/_logs/2018-04-04T06_01_57_849Z-debug.log
116
+
117
+ ```
118
+
119
+ また```find -name "cross-env.js" -type f```で検索しても何もでてきませんでした。