yarn/npm install failed
See original GitHub issueafter pull the newest master branch, yarn/npm install, throw error:
> electron-react-boilerplate@0.13.3 postinstall /Users/luoguochun/tmp/electron/ele-react
> node -r babel-register internals/scripts/CheckNativeDep.js && npm run flow-typed && npm run build-dll && electron-builder install-app-deps && node node_modules/fbjs-scripts/node/check-dev-engines.js package.json
/Users/luoguochun/tmp/electron/ele-react/internals/scripts/CheckNativeDep.js:2
import fs from 'fs';
^^
SyntaxError: Unexpected identifier
at new Script (vm.js:74:7)
at createScript (vm.js:246:10)
at Object.runInThisContext (vm.js:298:10)
at Module._compile (internal/modules/cjs/loader.js:657:28)
at loader (/Users/luoguochun/tmp/electron/ele-react/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/Users/luoguochun/tmp/electron/ele-react/node_modules/babel-register/lib/node.js:154:7)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron-react-boilerplate@0.13.3 postinstall: `node -r babel-register internals/scripts/CheckNativeDep.js && npm run flow-typed && npm run build-dll && electron-builder install-app-deps && node node_modules/fbjs-scripts/node/check-dev-engines.js package.json`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron-react-boilerplate@0.13.3 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/luoguochun/.npm/_logs/2018-07-12T02_59_44_663Z-debug.log
^_^@/Users/luoguochun/tmp/electron/ele-react]$ vim package.json
the newest release version V0.13.3 doesn’t have any problem.
env: os: macos 10.12.6 node: v10.6.0 yarn: 1.7.0 npm: 6.1.0
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
npm install workd perfectly. yarn install fails. #8493 - GitHub
This looks like you probably don't have node-gyp installed under yarn but you do for npm. You could try running yarn global add...
Read more >Yarn install keeps failing - Stack Overflow
I just had the same issue. It appears that a remote url for the version of fsevents that my yarn.lock file was referencing...
Read more >Error Codes | Yarn - Package Manager
This informational message occurs when Yarn wishes to let you know that a package will need to be built for the installation to...
Read more >Yarn install failing - Google Groups
I am installing frontend and when running $yarn install I an getting error, but the server is on work network that has no...
Read more >NPM install error - Material Design for Bootstrap
Delete node_modules folder and package-json.lock · Then run npm i · If problem still exists repeat point 1 and go to 4 point...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Try
rm -rf node_modules && yarn cache clean && yarnAs I said, it was a fail on my side, I did a cp of the directory and omitted to copy hidden files 😉 Everything works fine now 😃 Thanks