liuhu
liuhu

Reputation: 3

Error when attempting to install hexo

When I installed Hexo, I got this error. I don't know what's happend? Can someone help me?

C:\Users\LiuHu>npm install hexo-cli -g
npm WARN optional dep failed, continuing [email protected]
C:\Users\LiuHu\AppData\Roaming\npm\hexo -> C:\Users\LiuHu\AppData\Roaming\npm\no
de_modules\hexo-cli\bin\hexo
[email protected] C:\Users\LiuHu\AppData\Roaming\npm\node_modules\hexo-cli
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], supports-colo
[email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], chokidar@0.
12.6)

When i run this command npm install . it show me this error : D:\Document\Z_MYBlog_New>npm install

npm ERR! install Couldn't read dependencies

npm ERR! Windows_NT 6.1.7601

npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs

\\node_modules\\npm\\bin\\npm-cli.js" "install"

npm ERR! node v0.12.0

npm ERR! npm v2.5.1

npm ERR! path D:\Document\Z_MYBlog_New\package.json

npm ERR! code ENOPACKAGEJSON

npm ERR! errno -4058

npm ERR! package.json ENOENT, open 'D:\Document\Z_MYBlog_New\package.json'

npm ERR! package.json This is most likely not a problem with npm itself.

npm ERR! package.json npm can't find a package.json file in your current directory.

npm ERR! Please include the following file with any support request:

npm ERR! D:\Document\Z_MYBlog_New\npm-debug.log

And in D:\Document\Z_MYBlog_New\npm-debug.log this log file, it show me : 0 info it worked if it ends with ok

1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe',

1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',

1 verbose cli 'install' ]

2 info using [email protected]

3 info using [email protected]

4 verbose node symlink C:\Program Files\nodejs\\node.exe

5 error install Couldn't read dependencies

6 verbose stack Error: ENOENT, open 'D:\Document\Z_MYBlog_New\package.json'

6 verbose stack at Error (native)

7 verbose cwd D:\Document\Z_MYBlog_New

8 error Windows_NT 6.1.7601

9 error argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"

10 error node v0.12.0

11 error npm v2.5.1

12 error path D:\Document\Z_MYBlog_New\package.json

13 error code ENOPACKAGEJSON

14 error errno -4058

15 error package.json ENOENT, open 'D:\Document\Z_MYBlog_New\package.json'

15 error package.json This is most likely not a problem with npm itself.

15 error package.json npm can't find a package.json file in your current directory.

16 verbose exit [ -4058, true ]

Upvotes: 0

Views: 649

Answers (1)

B.Y.JFF
B.Y.JFF

Reputation: 66

This is a warn not error

I suggest you use the hexo 2.8.Now don't use hexo 3.0. cause the hexo-server or hexo clean maybe has something wrong that will make you bad. npm install [email protected] -g

Upvotes: 3

Related Questions