Last active
April 22, 2019 07:30
-
-
Save libbyschuknight/a1d1d970175b598eb4ad3a6164cb57c9 to your computer and use it in GitHub Desktop.
react for beginners first npm install / npm start errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i | |
npm WARN deprecated [email protected]: Way too old | |
npm WARN deprecated [email protected]: core-js@<2.6.5 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2. | |
npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. | |
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). | |
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor. | |
npm WARN deprecated [email protected]: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s). | |
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). | |
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). | |
> [email protected] install /Users/SchuKnight/code/learning/wes-bos/catch-of-the-day/node_modules/chokidar/node_modules/fsevents | |
> node install | |
node-pre-gyp WARN Using request for node-pre-gyp https download | |
[fsevents] Success: "/Users/SchuKnight/code/learning/wes-bos/catch-of-the-day/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node" is installed via remote | |
> [email protected] install /Users/SchuKnight/code/learning/wes-bos/catch-of-the-day/node_modules/fsevents | |
> node install | |
node-pre-gyp WARN Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.4/fse-v1.2.4-node-v67-darwin-x64.tar.gz | |
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v67 ABI, unknown) (falling back to source compile with node-gyp) | |
SOLINK_MODULE(target) Release/.node | |
CXX(target) Release/obj.target/fse/fsevents.o | |
../fsevents.cc:63:6: warning: field 'async_resource' will be initialized after field | |
'lockStarted' [-Wreorder] | |
: async_resource("fsevents:FSEvents"), lockStarted(false) { | |
^ | |
1 warning generated. | |
SOLINK_MODULE(target) Release/fse.node | |
COPY /Users/SchuKnight/code/learning/wes-bos/catch-of-the-day/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node | |
TOUCH Release/obj.target/action_after_build.stamp | |
> [email protected] install /Users/SchuKnight/code/learning/wes-bos/catch-of-the-day/node_modules/grpc | |
> node-pre-gyp install --fallback-to-build --library=static_library | |
node-pre-gyp WARN Using request for node-pre-gyp https download | |
[grpc] Success: "/Users/SchuKnight/code/learning/wes-bos/catch-of-the-day/node_modules/grpc/src/node/extension_binary/node-v67-darwin-x64-unknown/grpc_node.node" is installed via remote | |
npm notice created a lockfile as package-lock.json. You should commit this file. | |
npm WARN [email protected] requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself. | |
npm WARN [email protected] requires a peer of typescript@* but none is installed. You must install peer dependencies yourself. | |
added 2591 packages from 887 contributors and audited 36797 packages in 141.804s | |
found 68 vulnerabilities (63 low, 5 high) | |
run `npm audit fix` to fix them, or `npm audit` for details |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm WARN deprecated [email protected]: core-js@<2.6.5 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2. | |
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). | |
npm WARN deprecated [email protected]: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s). | |
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). | |
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). | |
npm WARN deprecated [email protected]: Way too old | |
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor. | |
> [email protected] install /Users/SchuKnight/code/learning/wes-bos/catch-of-the-day/node_modules/chokidar/node_modules/fsevents | |
> node install | |
node-pre-gyp WARN Using request for node-pre-gyp https download | |
[fsevents] Success: "/Users/SchuKnight/code/learning/wes-bos/catch-of-the-day/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node" is installed via remote | |
> [email protected] install /Users/SchuKnight/code/learning/wes-bos/catch-of-the-day/node_modules/fsevents | |
> node install | |
node-pre-gyp WARN Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.4/fse-v1.2.4-node-v67-darwin-x64.tar.gz | |
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v67 ABI, unknown) (falling back to source compile with node-gyp) | |
SOLINK_MODULE(target) Release/.node | |
CXX(target) Release/obj.target/fse/fsevents.o | |
../fsevents.cc:63:6: warning: field 'async_resource' will be initialized after field | |
'lockStarted' [-Wreorder] | |
: async_resource("fsevents:FSEvents"), lockStarted(false) { | |
^ | |
1 warning generated. | |
SOLINK_MODULE(target) Release/fse.node | |
COPY /Users/SchuKnight/code/learning/wes-bos/catch-of-the-day/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node | |
TOUCH Release/obj.target/action_after_build.stamp | |
> [email protected] install /Users/SchuKnight/code/learning/wes-bos/catch-of-the-day/node_modules/grpc | |
> node-pre-gyp install --fallback-to-build --library=static_library | |
node-pre-gyp WARN Using request for node-pre-gyp https download | |
[grpc] Success: "/Users/SchuKnight/code/learning/wes-bos/catch-of-the-day/node_modules/grpc/src/node/extension_binary/node-v67-darwin-x64-unknown/grpc_node.node" is installed via remote | |
npm WARN [email protected] requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself. | |
npm WARN [email protected] requires a peer of typescript@* but none is installed. You must install peer dependencies yourself. | |
added 2611 packages from 887 contributors and audited 36787 packages in 169.346s | |
found 68 vulnerabilities (63 low, 5 high) | |
run `npm audit fix` to fix them, or `npm audit` for details |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm start | |
> [email protected] start /Users/SchuKnight/code/learning/wes-bos/catch-of-the-day | |
> react-scripts start | |
There might be a problem with the project dependency tree. | |
It is likely not a bug in Create React App, but something you need to fix locally. | |
The react-scripts package provided by Create React App requires a dependency: | |
"babel-loader": "8.0.5" | |
Don't try to install it manually: your package manager does it automatically. | |
However, a different version of babel-loader was detected higher up in the tree: | |
/Users/SchuKnight/node_modules/babel-loader (version: 7.0.0) | |
Manually installing incompatible versions is known to cause hard-to-debug issues. | |
If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. | |
That will permanently disable this message but you might encounter other issues. | |
To fix the dependency tree, try following the steps below in the exact order: | |
1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder. | |
2. Delete node_modules in your project folder. | |
3. Remove "babel-loader" from dependencies and/or devDependencies in the package.json file in your project folder. | |
4. Run npm install or yarn, depending on the package manager you use. | |
In most cases, this should be enough to fix the problem. | |
If this has not helped, there are a few other things you can try: | |
5. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead. | |
This may help because npm has known issues with package hoisting which may get resolved in future versions. | |
6. Check if /Users/SchuKnight/node_modules/babel-loader is outside your project directory. | |
For example, you might have accidentally installed something in your home folder. | |
7. Try running npm ls babel-loader in your project folder. | |
This will tell you which other package (apart from the expected react-scripts) installed babel-loader. | |
If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. | |
That would permanently disable this preflight check in case you want to proceed anyway. | |
P.S. We know this message is long but please read the steps above :-) We hope you find them helpful! | |
npm ERR! code ELIFECYCLE | |
npm ERR! errno 1 | |
npm ERR! [email protected] start: `react-scripts start` | |
npm ERR! Exit status 1 | |
npm ERR! | |
npm ERR! Failed at the [email protected] start 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/SchuKnight/.npm/_logs/2019-04-22T07_07_38_495Z-debug.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i | |
> [email protected] install /Users/SchuKnight/code/learning/wes-bos/catch-of-the-day/node_modules/chokidar/node_modules/fsevents | |
> node install | |
node-pre-gyp WARN Using request for node-pre-gyp https download | |
[fsevents] Success: "/Users/SchuKnight/code/learning/wes-bos/catch-of-the-day/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node" is installed via remote | |
> [email protected] install /Users/SchuKnight/code/learning/wes-bos/catch-of-the-day/node_modules/fsevents | |
> node install | |
node-pre-gyp WARN Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.4/fse-v1.2.4-node-v67-darwin-x64.tar.gz | |
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v67 ABI, unknown) (falling back to source compile with node-gyp) | |
SOLINK_MODULE(target) Release/.node | |
CXX(target) Release/obj.target/fse/fsevents.o | |
../fsevents.cc:63:6: warning: field 'async_resource' will be initialized after field | |
'lockStarted' [-Wreorder] | |
: async_resource("fsevents:FSEvents"), lockStarted(false) { | |
^ | |
1 warning generated. | |
SOLINK_MODULE(target) Release/fse.node | |
COPY /Users/SchuKnight/code/learning/wes-bos/catch-of-the-day/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node | |
TOUCH Release/obj.target/action_after_build.stamp | |
> [email protected] install /Users/SchuKnight/code/learning/wes-bos/catch-of-the-day/node_modules/grpc | |
> node-pre-gyp install --fallback-to-build --library=static_library | |
node-pre-gyp WARN Using request for node-pre-gyp https download | |
[grpc] Success: "/Users/SchuKnight/code/learning/wes-bos/catch-of-the-day/node_modules/grpc/src/node/extension_binary/node-v67-darwin-x64-unknown/grpc_node.node" is installed via remote | |
added 2611 packages from 887 contributors and audited 36787 packages in 120.388s | |
found 68 vulnerabilities (63 low, 5 high) | |
run `npm audit fix` to fix them, or `npm audit` for details |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment