Comments (8)
Hi @gupta-pratik !
Looks like you didn't run make setup
first.
Please try to run make setup
and after that just make
.
If this error would appear again - please attach the npm log file.
Thank you!
from cv.
Hi @tbaltrushaitis ,
Thanks for looking into it.
I already ran make setup
command. The response of this command looks like this:
$ make setup
cp: illegal option -- u
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
cp: illegal option -- u
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
cp: illegal option -- u
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
[2019-05-29T11:38:53 IST] Created file [BUILD-0.2.2:1]
[2019-05-29T11:38:53 IST] Created file [BUILD_CONTENT:/Users/prateekg/personal/myprojects/cv/config/build.json]
[2019-05-29T11:38:53 IST] Created file [COMMIT:de6a88a4c1c65d40b8ffbab99fa6bb3d534198f8]
[2019-05-29T11:38:53 IST] Goal [DEFAULT:default]
[2019-05-29T11:38:53 IST] Goal [CURRENT:setup]
Did it ran successfully ?
Then I tried make
command, its also throwing the same error! 😢
from cv.
This is the Npm log file logs:
$ cat /Users/prateekg/.npm/_logs/2019-05-29T06_16_51_301Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle [email protected]~prebuild: [email protected]
6 verbose lifecycle [email protected]~prebuild: unsafe-perm in lifecycle true
7 verbose lifecycle [email protected]~prebuild: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/prateekg/personal/myprojects/cv/node_modules/.bin:/Users/prateekg/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Users/prateekg/bin
8 verbose lifecycle [email protected]~prebuild: CWD: /Users/prateekg/personal/myprojects/cv
9 silly lifecycle [email protected]~prebuild: Args: [ '-c', 'echo [PRE-BUILD]; gulp populate --color' ]
10 silly lifecycle [email protected]~prebuild: Returned: code: 1 signal: null
11 info lifecycle [email protected]~prebuild: Failed to exec prebuild script
12 verbose stack Error: [email protected] prebuild: `echo [PRE-BUILD]; gulp populate --color`
12 verbose stack Exit status 1
12 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
12 verbose stack at EventEmitter.emit (events.js:182:13)
12 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
12 verbose stack at ChildProcess.emit (events.js:182:13)
12 verbose stack at maybeClose (internal/child_process.js:962:16)
12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
13 verbose pkgid [email protected]
14 verbose cwd /Users/prateekg/personal/myprojects/cv
15 verbose Darwin 17.7.0
16 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
17 verbose node v10.15.0
18 verbose npm v6.4.1
19 error code ELIFECYCLE
20 error errno 1
21 error [email protected] prebuild: `echo [PRE-BUILD]; gulp populate --color`
21 error Exit status 1
22 error Failed at the [email protected] prebuild script.
22 error This is probably not a problem with npm. There is likely additional logging output above.
23 verbose exit [ 1, true ]
from cv.
Looks like cp
command in your OS doesn't have -u
option.
You can try to fix this. Open file Makefile
and at the top of it in these lines
$(shell [ -f NODE_ENV ] || cp -prfu config/.NODE_ENV ./NODE_ENV);
$(shell [ -f .bowerrc ] || cp -prfu config/.bowerrc ./);
$(shell [ -f .npmrc ] || cp -prfu config/.npmrc ./);
remove u
option. It should looks like this after that:
$(shell [ -f NODE_ENV ] || cp -prf config/.NODE_ENV ./NODE_ENV);
$(shell [ -f .bowerrc ] || cp -prf config/.bowerrc ./);
$(shell [ -f .npmrc ] || cp -prf config/.npmrc ./);
Also maybe in MacOS the SHELL
parameter should be set to: SHELL = /bin/bash
instead of /bin/sh
Hope this helps!
from cv.
HI @tbaltrushaitis ,
I tried removing -u
option aswell but the make
command is still not working.
So, I've now dockerized this application to use Ubuntu image, all these commands are now working fine.
But now I'm facing only one issue, index.html
is referencing to few js
libraries in assets/js/lib
folder. But there is no folder created with lib
folder and no library files are there in dist
folder.
Can you please take a look why js library files are not getting copied to dist folder.
Adding the snapshot.
from cv.
Hi!
As mentioned in README.md:
This will create/update webroot directory inside the project root. Use this directory as DocumentRoot in VirtualHost configuration of your web server.
So I believe you should re-point your web server into webroot directory instead of the dist
.
Please let me know if this help.
Thank you!
from cv.
have you solved your problems? Can this issue be closed?
Thank you!
from cv.
Closing due to inactivity of opener for more than 1 week.
from cv.
Related Issues (20)
- Demo Site - Restricted Area - Authorized Users Only HOT 3
- Demo Site - Down HOT 3
- Unsupported platform HOT 6
- make setup error HOT 6
- make deploy error HOT 2
- Problem with make command HOT 4
- issue can't deploy this project HOT 8
- Cv
- environment in window 10 HOT 6
- No rule to make target setup. Stop. HOT 6
- ReferenceError thrown during deployment HOT 5
- Update Readme File HOT 3
- Dependency issue HOT 3
- Installation Error HOT 2
- Error HOT 1
- Is it possible to use this with GitHub Pages? HOT 1
- Installation Error HOT 22
- Installation Still Not Working: Make Processes Ran Successfully But Webpage 403s HOT 4
- Option for Dark and Light mode? HOT 1
- "make build" -- Need Help HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cv.