react環境でアプリを編集して、起動しようとnpm startしたところ起動しません。
試したこと
チェックのスルー
SKIP_PREFLIGHT_CHECK=true
と、アプリディレクトリ以外のnode_modules全削除
find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +
上二つは試してみましたが、うまく解決できません。
どのようにすれば解決できるかご教授願いたいです。
よろしくお願い申し上げます。
以下エラー文です。
エラー文
> cycle@0.1.0 start /Users/user/Documents/ubuntu/cycle > react-scripts start internal/modules/cjs/loader.js:895 throw err; ^ Error: Cannot find module 'entities/maps/entities.json' Require stack: - /Users/user/Documents/ubuntu/cycle/node_modules/htmlparser2/lib/Tokenizer.js - /Users/user/Documents/ubuntu/cycle/node_modules/htmlparser2/lib/Parser.js - /Users/user/Documents/ubuntu/cycle/node_modules/htmlparser2/lib/index.js - /Users/user/Documents/ubuntu/cycle/node_modules/renderkid/lib/tools.js - /Users/user/Documents/ubuntu/cycle/node_modules/renderkid/lib/renderKid/styleApplier/inline.js - /Users/user/Documents/ubuntu/cycle/node_modules/renderkid/lib/RenderKid.js - /Users/user/Documents/ubuntu/cycle/node_modules/pretty-error/lib/PrettyError.js - /Users/user/Documents/ubuntu/cycle/node_modules/html-webpack-plugin/lib/errors.js - /Users/user/Documents/ubuntu/cycle/node_modules/html-webpack-plugin/index.js - /Users/user/Documents/ubuntu/cycle/node_modules/react-scripts/config/webpack.config.js - /Users/user/Documents/ubuntu/cycle/node_modules/react-scripts/scripts/start.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:892:15) at Function.Module._load (internal/modules/cjs/loader.js:742:27) at Module.require (internal/modules/cjs/loader.js:964:19) at require (internal/modules/cjs/helpers.js:88:18) at Object.<anonymous> (/Users/user/Documents/ubuntu/cycle/node_modules/htmlparser2/lib/Tokenizer.js:4:17) at Module._compile (internal/modules/cjs/loader.js:1075:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1096:10) at Module.load (internal/modules/cjs/loader.js:940:32) at Function.Module._load (internal/modules/cjs/loader.js:781:14) at Module.require (internal/modules/cjs/loader.js:964:19) { code: 'MODULE_NOT_FOUND', requireStack: [ '/Users/user/Documents/ubuntu/cycle/node_modules/htmlparser2/lib/Tokenizer.js', '/Users/user/Documents/ubuntu/cycle/node_modules/htmlparser2/lib/Parser.js', '/Users/user/Documents/ubuntu/cycle/node_modules/htmlparser2/lib/index.js', '/Users/user/Documents/ubuntu/cycle/node_modules/renderkid/lib/tools.js', '/Users/user/Documents/ubuntu/cycle/node_modules/renderkid/lib/renderKid/styleApplier/inline.js', '/Users/user/Documents/ubuntu/cycle/node_modules/renderkid/lib/RenderKid.js', '/Users/user/Documents/ubuntu/cycle/node_modules/pretty-error/lib/PrettyError.js', '/Users/user/Documents/ubuntu/cycle/node_modules/html-webpack-plugin/lib/errors.js', '/Users/user/Documents/ubuntu/cycle/node_modules/html-webpack-plugin/index.js', '/Users/user/Documents/ubuntu/cycle/node_modules/react-scripts/config/webpack.config.js', '/Users/user/Documents/ubuntu/cycle/node_modules/react-scripts/scripts/start.js' ] } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! cycle@0.1.0 start: `react-scripts start` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the cycle@0.1.0 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/user/.npm/_logs/2020-09-07T14_23_18_865Z-debug.log
あなたの回答
tips
プレビュー