Microsoft Windows [Version 10.0.17134.345]

(c) 2018 Microsoft Corporation. All rights reserved.


E:\workspace2\bizmicro-admin-react-front>yarn start

yarn run v1.9.4

$ node scripts/start.js

module.js:549

    throw err;

    ^


Error: Cannot find module 'react-dev-utils/clearConsole'

    at Function.Module._resolveFilename (module.js:547:15)

    at Function.Module._load (module.js:474:25)

    at Module.require (module.js:596:17)

    at require (internal/module.js:11:18)

    at Object.<anonymous> (E:\workspace2\bizmicro-admin-react-front\scripts\start.js:21:22)

    at Module._compile (module.js:652:30)

    at Object.Module._extensions..js (module.js:663:10)

    at Module.load (module.js:565:32)

    at tryModuleLoad (module.js:505:12)

    at Function.Module._load (module.js:497:3)

error Command failed with exit code 1.

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.


E:\workspace2\bizmicro-admin-react-front>npm install react-dev-utils

npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning SELF_SIGNED_CERT_IN_CHAIN: request to https://registry.npmjs.org/react-dev-utils failed, reason: self signed certificate in certificate chain

npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.

npm WARN tar ENOENT: no such file or directory, lstat 'E:\workspace2\bizmicro-admin-react-front\node_modules\.staging\fsevents-a12bb4aa\build\Release\.deps\Release'

npm WARN tar ENOENT: no such file or directory, lstat 'E:\workspace2\bizmicro-admin-react-front\node_modules\.staging\fsevents-a12bb4aa\build\Release'

npm ERR! code SELF_SIGNED_CERT_IN_CHAIN

npm ERR! errno SELF_SIGNED_CERT_IN_CHAIN

npm ERR! request to https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-5.0.3.tgz failed, reason: self signed certificate in certificate chain


npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\KB-SYS\AppData\Roaming\npm-cache\_logs\2018-10-25T06_26_34_179Z-debug.log


E:\workspace2\bizmicro-admin-react-front>npm install --save-dev react-dev-utils

npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning SELF_SIGNED_CERT_IN_CHAIN: request to https://registry.npmjs.org/react-dev-utils failed, reason: self signed certificate in certificate chain

npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'E:\workspace2\bizmicro-admin-react-front\node_modules\.staging\fsevents-a12bb4aa\node_modules\abbrev' -> 'E:\workspace2\bizmicro-admin-react-front\node_modules\.staging\abbrev-fa3e277d'


npm ERR! code SELF_SIGNED_CERT_IN_CHAIN

npm ERR! errno SELF_SIGNED_CERT_IN_CHAIN

npm ERR! request to https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-5.0.3.tgz failed, reason: self signed certificate in certificate chain


npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\KB-SYS\AppData\Roaming\npm-cache\_logs\2018-10-25T06_26_53_847Z-debug.log


E:\workspace2\bizmicro-admin-react-front>set NODE_TLS_REJECT_UNAUTHORIZED=0


E:\workspace2\bizmicro-admin-react-front>npm install --save-dev react-dev-utils

npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning SELF_SIGNED_CERT_IN_CHAIN: request to https://registry.npmjs.org/react-dev-utils failed, reason: self signed certificate in certificate chain

npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.

npm WARN tar ENOENT: no such file or directory, open 'E:\workspace2\bizmicro-admin-react-front\node_modules\.staging\recursive-readdir-66fa5cff\test\testdir\b\123'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'E:\workspace2\bizmicro-admin-react-front\node_modules\.staging\fsevents-a12bb4aa\node_modules\ansi-regex' -> 'E:\workspace2\bizmicro-admin-react-front\node_modules\.staging\ansi-regex-c021865d'


npm ERR! code SELF_SIGNED_CERT_IN_CHAIN

npm ERR! errno SELF_SIGNED_CERT_IN_CHAIN

npm ERR! request to https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-5.0.3.tgz failed, reason: self signed certificate in certificate chain


npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\KB-SYS\AppData\Roaming\npm-cache\_logs\2018-10-25T06_28_17_705Z-debug.log


E:\workspace2\bizmicro-admin-react-front>npm config set strict-ssl false


E:\workspace2\bizmicro-admin-react-front>npm install react-dev-utils

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})


+ react-dev-utils@5.0.3

added 55 packages in 7.774s



reference: https://qiita.com/ota-meshi/items/69ed2333ed2ba0768178

cmd 창에서

npm config set strict-ssl false

Posted by roselumi
,