Ошибка при запуске GULP для вложенного проекта React - PullRequest
0 голосов
/ 31 октября 2019

У меня проблема с использованием GULP для моего приложения реагирования, и мне было интересно, может ли кто-нибудь помочь мне решить эту проблему. Я очень новичок, чтобы реагировать и глотать. Буду признателен за любой конструктивный вклад, спасибо!

Версия NPM

Мой package.json

{
"name": "studyseat",
"version": "1.0.0",
"description": "A website that finds and manages places to study in a particular area by leveraging the Google Maps API",
"main": "index.js",
"scripts": {
    "build": "npm run build-client; npm run build-server",
    "build-client": "cd client && npm run build",
    "build-server": "npm install && tsc -p .",
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "node build/server/index.js",
    "start-dev": "nodemon --inspect build/server/index.js --watch build --ignore node_modules"
},
"repository": {
    "type": "git",
    "url": "git+https://github.com/JohnYoon13/StudySeat.git"
},
"author": "",
"license": "ISC",
"bugs": {
    "url": "https://github.com/JohnYoon13/StudySeat/issues"
},
"homepage": "https://github.com/JohnYoon13/StudySeat#readme",
"devDependencies": {
    "browser-sync": "^2.26.7",
    "gulp": "^4.0.2",
    "gulp-concat": "^2.6.1",
    "gulp-jshint": "^2.1.0",
    "gulp-rename": "^1.4.0",
    "gulp-sass": "^4.0.2",
    "gulp-sourcemaps": "^2.6.5",
    "gulp-typescript": "^5.0.1",
    "gulp-uglify": "^3.0.2",
    "jshint": "^2.10.2",
    "nodemon": "^1.19.4",
    "ts-node": "^8.4.1",
    "typescript": "^3.6.4"
},
"dependencies": {
    "@types/express": "^4.17.1",
    "body-parser": "^1.19.0",
    "dotenv": "^8.2.0",
    "express": "^4.17.1",
    "react-bootstrap": "^1.0.0-beta.14",
    "react-redux": "^7.1.1",
    "redux": "^4.0.4"
}

}

Мое сообщение об ошибке

> client@0.1.0 compile    /Users/syranol/Desktop/CapstoneProject/ProjectWeek3/StudySeat/client
> react-scripts build; rm -rf ../build/client; mkdir ../build/client; mv build/* ../build/client/ && rm -rf build

 Failed to compile.

 Creating an optimized production build...
    ENOENT: no such file or directory, copyfile      '/Users/syranol/Desktop/CapstoneProject/ProjectWeek3/StudySeat/client/public/logo512.png' -> '/Users/syranol/Desktop/CapstoneProject/ProjectWeek3/StudySeat/client/build/logo512.png'

npm ERR! errno 64
npm ERR! client@0.1.0 compile: `react-scripts build; rm -rf ../build/client; mkdir ../build/client; mv build/* ../build/client/ &&  rm -rf build`
npm ERR! Exit status 64
npm ERR! 
npm ERR! Failed at the client@0.1.0 compile 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/syranol/.npm/_logs/2019-10-31T15_56_39_403Z-debug.log

[08:56:39] Закончено 'build: client' через 49 секунд после ошибки. код ELIFECYCLE npm ERR! errno 64 нпм ERR! client@0.1.0 build: npm install; npm run compile npm ERR! Статус выхода 64 npm ERR! нпм ERR! Не удалось выполнить скрипт сборки client@0.1.0. нпм ERR! Это, вероятно, не проблема с npm. Вероятно, есть дополнительные выходные данные регистрации.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/syranol/.npm/_logs/2019-10-31T15_56_39_469Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 64
npm ERR! studyseat@1.0.0 build-client: `cd client && npm run build`
npm ERR! Exit status 64
npm ERR! 
npm ERR! Failed at the studyseat@1.0.0 build-client 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/syranol/.npm/_logs/2019-10-31T15_56_39_534Z-debug.log
...