Comments (16)
Got the same problem. My setup:
- Mac OSX: 10.11.6
- NodeJS: v7.10.0
- npm: v4.6.1
I use nvm to manage my node versions. Recently I upgraded to v7, and dtrace-provider
complained about its compilation.
I tried the following steps:
- uninstall hexo-cli globally
$ npm uninstall -g hexo-cli
- then reinstall it
$ npm install -g hexo-cli
Till this step, when I went to my hexo blog folder and ran hexo server
, dtrace-provider
was still complaining. So I decided to remove all the node_modules
and reinstall.
- under your hexo blog folder (where you have
node_modules
,public
,scaffolds
,source
and others), removenode_modules
$ rm -rf node_modules
- then reinstall them all
$ npm install
You will see dtrace-provider
has an installation step during npm install as follows:
> [email protected] install /path/to/your/blog/folder/node_modules/dtrace-provider
> node scripts/install.js
So I think 3 and 4 are the actual steps that resolves dtrace-provider
complain.
from hexo-related-popular-posts.
You can fix this problem by doing this in Mac os:
- cd hexo installation directory
cd `which hexo`/../..
- remove installed node modules
rm -rvf node_modules
- reinstall all dependencies
npm install
if you're in china, please use
cnpm i
which provides faster installation speed.
from hexo-related-popular-posts.
@levblanc
Thank you for the helpful information .
from hexo-related-popular-posts.
@levblanc Thank you for the helpful information. I solved this problem by following your advices!
from hexo-related-popular-posts.
I had to complete all 4 steps to solve the issue on my local machine. Thanks for the info.
from hexo-related-popular-posts.
@levblanc Thank you, I finally solved.
from hexo-related-popular-posts.
re-install hexo-cli works
from hexo-related-popular-posts.
Maybe your Global installation files hasn`t been update, please try to update your hexo-cli with command below:
sudo npm install -g hexo-cli
this solved my problem.
from hexo-related-popular-posts.
I tried both npm rebuild and npm install - neither worked.
from hexo-related-popular-posts.
Can you try to remove the node-modules folder and rerun the npm install
?
from hexo-related-popular-posts.
Is it possible to solve follow as ? Also , please refer what NoahDragon taught .
hexojs/hexo#1055
http://stackoverflow.com/questions/40368058/atom-package-manager-not-working
from hexo-related-popular-posts.
@noscripter Thank you . The advice from you was very helpful.
@jordancclive Would it be possible to solve this issue ?
from hexo-related-popular-posts.
I failure
from hexo-related-popular-posts.
@liugaohua
Please try reinstall hexo and plugin. For example , you try following emviroment.
- Mac OSX 10.11 (Sorry , I can't tried windows. )
- node v6.9.4
- npm v4.1.1
- [email protected]
$ nvm install v6.9.4
$ nvm use v6.9.4
$ npm install -g npm
$ npm install -g hexo-cli
$ hexo init hexo694
$ cd hexo694
$ npm install
$ npm install hexo-related-popular-posts --save
$ hexo new sample-post-1
$ hexo new sample-post-2
Please edit sample-post-1.md
as following.
title: sample1
permalink: sample-post-1
date: 2017-03-10 20:41:00
tags:
- hexo
categories:
- web
---
Hello , world !
Please edit sample-post-2.md
as following.
title: sample2
permalink: sample-post-2
date: 2017-03-10 20:42:00
tags:
- hexo
categories:
- web
---
Hello , world ! This post's title is sample2.
Next, please follow these instructions.
https://github.com/tea3/hexo-related-popular-posts#usage
Can you solve this issue by this way ?
from hexo-related-popular-posts.
@MikeMMao
Never run npm install -g hexo-cli
with sudo
. Sometimes it would cause some problem with permission.
You can see more at Mac install hexo use sudo but sitll permission denied · Issue #2785 · hexojs/hexo
from hexo-related-popular-posts.
@levblanc thank you very much, this sovlved my problem
from hexo-related-popular-posts.
Related Issues (20)
- How to modify the font? HOT 2
- 『Site』view count HOT 1
- tag_map support HOT 2
- isImageとisExcerptはfrontmatterで設定してもjsonでは取得できない HOT 1
- Can't generate url correctly when site is in a subdirectory HOT 3
- Unhandled rejection TypeError: Cannot read property 'path' of undefined HOT 2
- one problem with Next theme
- Google analytics configuration not clear or out-of-date HOT 3
- list-json.js)The theme you are using doesn't support "post" data. P lease set the data manually HOT 3
- hexo-fs out of date cause fail to install on node v13 HOT 3
- TypeError: Cannot read property 'length' of undefined
- Unhandled rejection TypeError [ERR_INVALID_ARG_TYPE] HOT 3
- list-json.js use moment format error
- If you use hexo5.0 and use the related Popular Posts plug-in, you may cause errors. HOT 1
- Security problem HOT 2
- Feature-Request about list.img HOT 8
- Multiple posts could not contain a same tag (TypeError: this.localeData(...).postformat is not a function) HOT 1
- Does anyone else update this package? HOT 1
- When article was modified, the page could't render again HOT 2
- If there is no posts, the function should return empty HOT 5
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 hexo-related-popular-posts.