簡體   English   中英

詳細堆棧錯誤:ENOENT:沒有這樣的文件或目錄,打開

[英]verbose stack Error: ENOENT: no such file or directory, open

我正在嘗試使用npm start為我正在處理的 React 應用程序運行本地服務器。 昨天效果很好。 但是當我今天嘗試運行它時,我收到以下錯誤消息,請參見下文。 我在互聯網上嘗試了一些解決方案,例如重新安裝npm install ,刪除package-lock.json文件和package.json ,重新創建這些文件,安裝缺少的模塊npm-install-missing但沒有運氣。 請幫忙 :)

 0 info it worked if it ends with ok 1 verbose cli [ '/Applications/anaconda3/bin/node', 1 verbose cli '/Applications/anaconda3/bin/npm', 1 verbose cli 'start' ] 2 info using npm@6.14.8 3 info using node@v11.14.0 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle amazon-clone@0.1.0~prestart: amazon-clone@0.1.0 6 info lifecycle amazon-clone@0.1.0~start: amazon-clone@0.1.0 7 verbose lifecycle amazon-clone@0.1.0~start: unsafe-perm in lifecycle true 8 verbose lifecycle amazon-clone@0.1.0~start: PATH: /Applications/anaconda3/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/joseftichanek/Desktop/React_Amazon/node_modules/.bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/anaconda3/bin:/Applications/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.7/bin 9 verbose lifecycle amazon-clone@0.1.0~start: CWD: /Users/josef/Desktop/React_Amazon 10 silly lifecycle amazon-clone@0.1.0~start: Args: [ '-c', 'react-scripts start' ] 11 silly lifecycle amazon-clone@0.1.0~start: Returned: code: 1 signal: null 12 info lifecycle amazon-clone@0.1.0~start: Failed to exec start script 13 verbose stack Error: amazon-clone@0.1.0 start: `react-scripts start` 13 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (/Applications/anaconda3/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16) 13 verbose stack at EventEmitter.emit (events.js:193:13) 13 verbose stack at ChildProcess.<anonymous> (/Applications/anaconda3/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:193:13) 13 verbose stack at maybeClose (internal/child_process.js:999:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:266:5) 14 verbose pkgid amazon-clone@0.1.0 15 verbose cwd /Users/josef/Desktop/React_Amazon 16 verbose Darwin 19.6.0 17 verbose argv "/Applications/anaconda3/bin/node" "/Applications/anaconda3/bin/npm" "start" 18 verbose node v11.14.0 19 verbose npm v6.14.8 20 error code ELIFECYCLE 21 error errno 1 22 error amazon-clone@0.1.0 start: `react-scripts start` 22 error Exit status 1 23 error Failed at the amazon-clone@0.1.0 start script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]

您在預期位置缺少package.json文件:

'/Users/josef/Desktop/React_Amazon/package.json'

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM