Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何修改框架内容? #12

Open
shshsunny opened this issue Aug 4, 2019 · 4 comments
Open

如何修改框架内容? #12

shshsunny opened this issue Aug 4, 2019 · 4 comments

Comments

@shshsunny
Copy link

请问如何修改About页面的内容,以及修改locale(将网站的语言自定义成中文)语言包?是否能直接在master分支中直接修改相关文件以达成目的?谢谢!

@martin-liu
Copy link
Owner

@shshsunny 可以自己修改对应的html文件: https://github.com/martin-liu/martin-liu.github.io/blob/staging/src/app/about/about.component.html

改完执行./bin/deploy.sh即可

@shshsunny
Copy link
Author

我在npm install的时候出了这个问题:

gyp ERR! stack Error: Command failed: C:\Users\Sunny\AppData\Local\Programs\Python\Python37\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:294:12)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:970:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)

看起来是它调用Python的命令是Python 2的,与我装的Python 3不兼容,请问该怎么解决?

@martin-liu
Copy link
Owner

@shshsunny
你可以装一个python2,然后npm config set python /path/to/executable/python2.7
see https://github.com/nodejs/node-gyp#on-windows

@shshsunny
Copy link
Author

@martin-liu 搞定啦 感谢大佬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants