在 git Bash 中運行以下命令
$ hexo init myBlog
$ cd myBlog
$ npm install
在第三步的時候,報錯
npm WARN deprecated [email protected]: One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size
> [email protected] postinstall E:\GitHub\myBlog\node_modules\ejs
> node ./postinstall.js
'node'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\nunjucks\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node ./postinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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\master\AppData\Roaming\npm-cache\_logs\2019-12-06T05_44_50_717Z-debug.log
在網上并沒有找到相應的解決辦法,確切的來說沒找到準確的解決方法。請大佬指點。萬分感謝
uj5u.com熱心網友回復:
沒有(>﹏<),直接缺少東西
uj5u.com熱心網友回復:
解決了嗎。。我也遇到了
uj5u.com熱心網友回復:
把依賴刪掉再重新安裝試試uj5u.com熱心網友回復:
請問博主這個問題解決了嗎?uj5u.com熱心網友回復:
沒有,缺少的包現在不下來
uj5u.com熱心網友回復:
我的問題解決了,博主可以看一下這個博客:https://blog.csdn.net/m0_46493091/article/details/106891882uj5u.com熱心網友回復:
https://blog.csdn.net/weixin_43482279/article/details/106894188?utm_medium=distribute.pc_relevant_bbs_down.none-task-blog-baidujs-1.nonecase&depth_1-utm_source=distribute.pc_relevant_bbs_down.none-task-blog-baidujs-1.nonecase這篇帖子里面有解決方法,希望能幫到你。
uj5u.com熱心網友回復:
使用 npm install -g cnpm --registry=https://registry.npm.taobao.org轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/27810.html
標籤:Java相關
