Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.

Commit f4451f2

Browse files
committed
null check on env check
1 parent f0131d5 commit f4451f2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

createSolid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function createApp(
214214
JSON.stringify(packageJson, null, 2) + os.EOL
215215
);
216216

217-
const useYarn = process.env._.endsWith('yarn') && shouldUseYarn()
217+
const useYarn = process.env._ && process.env._.endsWith('yarn') && shouldUseYarn()
218218
const originalDirectory = process.cwd();
219219
process.chdir(root);
220220
if (!useYarn && !checkThatNpmCanReadCwd()) {

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-solid",
3-
"version": "0.0.9",
3+
"version": "0.0.10",
44
"keywords": [
55
"solid"
66
],

0 commit comments

Comments
 (0)