We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eae3d82 commit 5bbe63aCopy full SHA for 5bbe63a
packages/react-scripts/scripts/init.js
@@ -83,7 +83,9 @@ module.exports = function(
83
) {
84
const ownPackageName = require(path.join(__dirname, '..', 'package.json'))
85
.name;
86
- const ownPath = path.join(appPath, 'node_modules', ownPackageName);
+ const ownPath = path.dirname(
87
+ require.resolve(path.join(__dirname, '..', 'package.json'))
88
+ );
89
const appPackage = require(path.join(appPath, 'package.json'));
90
const useYarn = fs.existsSync(path.join(appPath, 'yarn.lock'));
91
0 commit comments