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

window安装问题 #3344

Closed
vae-Eason opened this issue Nov 8, 2018 · 10 comments
Closed

window安装问题 #3344

vae-Eason opened this issue Nov 8, 2018 · 10 comments
Labels
non-english Requires the attention of a multi-lingual maintainer question Needs help in usage stale

Comments

@vae-Eason
Copy link

vae-Eason commented Nov 8, 2018

$ cnpm install -g hexo
npm WARN deprecated titlecase@1.1.2: no longer maintained
npm WARN deprecated postinstall-build@5.0.3: postinstall-build's behavior is now built into npm! You should migrate off of postinstall-build and use the new prepare lifecycle script with npm 5.0.0 or greater.
C:\Users\Administrator\AppData\Roaming\npm\hexo -> C:\Users\Administrator\AppData\Roaming\npm\node_modules\hexo\bin\hexo

nunjucks@3.1.3 postinstall C:\Users\Administrator\AppData\Roaming\npm\node_modules\hexo\node_modules\nunjucks
node postinstall-build.js src

'node' ▒▒▒▒▒ڲ▒▒▒▒ⲿ▒▒▒Ҳ▒▒▒ǿ▒▒▒▒еij▒▒▒
▒▒▒▒▒▒▒▒▒ļ▒▒▒
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\hexo\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nunjucks@3.1.3 postinstall: node postinstall-build.js src
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nunjucks@3.1.3 postinstall 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! C:\Users\Administrator.npm.cache\cnpm_logs\2018-11-08T09_09_53_790Z-debug.log

@vae-Eason
Copy link
Author

还是安装问题,git,node都有了

@gautamz07
Copy link
Contributor

Can you post your environment details , eg node version ?

@ghost
Copy link

ghost commented Nov 8, 2018

@vae-Eason 建议换npm试试,cnpm有时候会有些莫名其妙的坑。前面好像有issues提到是权限问题,可以参考下

@vae-Eason
Copy link
Author

您可以发布您的环境详细信息,例如节点版本吗?
image
image

@vae-Eason
Copy link
Author

@ VAE-陈奕迅 建议换NPM试试,CNPM有时候会有些莫名其妙的坑。前面好像有问题提到是权限问题,可以参考下

我换了两个版本一个是10开头,一个8开头,都不行哈

@JLHwung JLHwung added question Needs help in usage non-english Requires the attention of a multi-lingual maintainer labels Nov 17, 2018
@delvindonn
Copy link

So,how to solve the problem finally. I have the same problem in mac environment. node version is v11.2.0
and the npm version is 6.4.1 . i cant find more useful information in google.

@tomap
Copy link
Contributor

tomap commented Dec 1, 2018

See mozilla/nunjucks#1169 might be linked

@delvindonn
Copy link

i have solve the problem. in mac you cant install nodejs by brew , it will give you the latest version of nodejs ,not the LTS version . you must download the package from https://nodejs.org!. get the LTS version!
_20181205205238
and than you will successfully install hexo with no any error!
i dont take a try at windows ! maybe it will worked also!

@wearetime
Copy link

http://blog.51cto.com/13872978/2318972?source=dra 这个网址教程中有答案

@stale
Copy link

stale bot commented Apr 2, 2019

This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 2, 2019
@stale stale bot closed this as completed Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
non-english Requires the attention of a multi-lingual maintainer question Needs help in usage stale
Projects
None yet
Development

No branches or pull requests

6 participants