help,can someone help me please?

2,136 views
Skip to first unread message

Chris Chau

unread,
Jul 14, 2014, 12:59:24 PM7/14/14
to nod...@googlegroups.com

i don't know why my node can't do anything,can't run or install any software,should i completely uninstall it or am i miss any software like microsoft visual C++?

it look like this :

C:\Users\Chris\Dropbox\blog>hexo server -i 127.0.0.1
[info] Hexo is running at http://127.0.0.1:80/. Press Ctrl+C to stop.
^C要終止批次工作嗎 (Y/N)? y

C:\Users\Chris\Dropbox\blog>npm install hexo -g
npm WARN optional dep failed, continuing fsev...@0.2.0
C:\Users\Chris\AppData\Roaming\npm\hexo -> C:\Users\Chris\AppData\Roaming\npm\no
de_modules\hexo\bin\hexo
he...@2.8.0 C:\Users\Chris\AppData\Roaming\npm\node_modules\hexo
├── hexo-fro...@0.0.3
├── grace...@3.0.2
├── pang...@0.0.6
├── col...@0.6.2
├── as...@0.9.0
├── mini...@0.1.0
├── mi...@1.2.11
├── sprin...@0.0.7
├── lod...@2.4.1
├── ware...@0.2.2 (as...@0.7.0)
├── mor...@1.1.1 (by...@1.0.0)
├── highli...@8.0.0
├── chok...@0.8.2 (recursiv...@0.0.2)
├── con...@3.0.2 (pars...@1.1.3, utils...@1.0.0, de...@1.0.3, finalhandl
e...@0.0.2)
├── mom...@2.7.0
├── compr...@1.0.8 (by...@1.0.0, va...@0.1.0, compre...@1.1.0, on-header
s...@0.0.0, acc...@1.0.7)
├── serve-...@1.3.2 (pars...@1.1.3, escap...@1.0.1, se...@0.6.0)
├── sw...@1.3.2 (opti...@0.6.1, ugli...@2.4.15)
├── che...@0.17.0 (enti...@1.1.1, dom-ser...@0.0.1, CSSs...@0.4.1, ht
mlpa...@3.7.3)
└── js-...@3.1.0 (esp...@1.0.4, argp...@0.1.15)

C:\Users\Chris\Dropbox\blog>npm install poet -g
po...@1.0.2 C:\Users\Chris\AppData\Roaming\npm\node_modules\poet
├── fs-...@0.1.0
├── json-fro...@0.1.6
├── under...@1.4.4
├── mar...@0.3.2
├── wh...@2.1.1
├── front-...@0.2.0 (yam...@0.0.7)
└── ja...@1.3.1 (comm...@2.1.0, characte...@1.2.0, mkd...@0.3.5, monocl
e...@1.1.51, transf...@2.1.0, constan...@2.0.1, wi...@3.0.0)

C:\Users\Chris\Dropbox\blog>npm install events -g
eve...@1.0.1 C:\Users\Chris\AppData\Roaming\npm\node_modules\events

C:\Users\Chris\Dropbox\blog>npm install fsevents -g
npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: fseve
n...@0.2.0
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: x64

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nod
ejs\node_modules\npm\bin\npm-cli.js" "install" "fsevents" "-g"
npm ERR! cwd C:\Users\Chris\Dropbox\blog
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code EBADPLATFORM
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Chris\Dropbox\blog\npm-debug.log
npm ERR! not ok code 0

C:\Users\Chris\Dropbox\blog>

mscdex

unread,
Jul 14, 2014, 3:31:45 PM7/14/14
to nod...@googlegroups.com
On Monday, July 14, 2014 12:59:24 PM UTC-4, Chris Chau wrote:

i don't know why my node can't do anything,can't run or install any software,should i completely uninstall it or am i miss any software like microsoft visual C++?



 

C:\Users\Chris\Dropbox\blog>npm install fsevents -g


npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: fseve
n...@0.2.0
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: x64

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nod
ejs\node_modules\npm\bin\npm-cli.js" "install" "fsevents" "-g"
npm ERR! cwd C:\Users\Chris\Dropbox\blog
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code EBADPLATFORM


As the error shows, that particular module is designed for a different platform (OSX/Darwin) and you're on Windows.

FSEvents is something that is specific to OSX, so there's no point in trying to (force) use it on any other platform. The module is optional anyway for the first module you installed (hexo), so don't worry about it.

Chris Chau

unread,
Jul 14, 2014, 11:05:18 PM7/14/14
to nod...@googlegroups.com
But i can normaly use it ,everything is fine before,i can install any other modules.Now i can run hexo or other modules but it can't work well,i am just a beginner,i don't wanna format the whole computer,maybe is my problem,i uninstalled some required software.

Now the hexo look like this if i run it on website:


C:\Users\Chris\Dropbox\blog>hexo server -i 127.0.0.1
[error] { name: 'HexoError',
  reason: 'incomplete explicit mapping pair; a key node is missed',
  mark:
   { name: null,
     buffer: 'categories: Categories\nsearch: Search\ntags: Tags\ntagcloud: Tag
Cloud\nprev: Prev\nnext: Next\ncomment: Comments\ncontents: Contents\narchive_a:
 Archives\narchive_b: Archives: %s\npage: Page %d\nrecent_posts: Recent Posts\nm
enu: Menu\nlinks: Links\nrss: RSS\nshowsidebar: Show Sidebar\nhidesidebar: Hide
Sidebar\nupdated: Updated\n\u0000',
     position: 167,
     line: 9,
     column: 19 },
  message: 'Process failed: languages/default.yml',
  domain:
   { domain: null,
     _events: { error: [Function] },
     _maxListeners: 10,
     members: [ [Object] ] },
  domainThrown: true,
  stack: undefined }

C:\Users\Chris\Dropbox\blog>

Can you teach how to completely uninstall and clean all nodejs data and reinstall it please,i really need your help,i just wanna use hexo to build a simple blog 

mscdex

unread,
Jul 15, 2014, 6:43:54 AM7/15/14
to nod...@googlegroups.com
On Monday, July 14, 2014 11:05:18 PM UTC-4, Chris Chau wrote:
C:\Users\Chris\Dropbox\blog>hexo server -i 127.0.0.1
[error] { name: 'HexoError',
  reason: 'incomplete explicit mapping pair; a key node is missed',
  mark:
   { name: null,
     buffer: 'categories: Categories\nsearch: Search\ntags: Tags\ntagcloud: Tag
Cloud\nprev: Prev\nnext: Next\ncomment: Comments\ncontents: Contents\narchive_a:
 Archives\narchive_b: Archives: %s\npage: Page %d\nrecent_posts: Recent Posts\nm
enu: Menu\nlinks: Links\nrss: RSS\nshowsidebar: Show Sidebar\nhidesidebar: Hide
Sidebar\nupdated: Updated\n\u0000',
     position: 167,
     line: 9,
     column: 19 },
  message: 'Process failed: languages/default.yml',


The error is saying that the yaml file (languages/default.yml I'm assuming) is invalid, there is some kind of syntax error where a "key node" is missing. Judging by the `buffer` value, it looks like the null character at the end of that yaml file (represented by \u0000 up above) might be the cause. Try deleting that null character and retry your command.
Reply all
Reply to author
Forward
0 new messages