node.js - [nodejs] Problems encountered when installing bower
phpcn_u1582
phpcn_u1582 2017-05-16 13:29:00
0
1
506

I am a Mac system, and I encountered this error message when using npm to install bower globally:

Last login: Wed May 10 21:34:56 on ttys002
192:~ tachou$ npm install bower
/Users/tachou
└── bower@1.8.0

npm WARN enoent ENOENT: no such file or directory, open '/Users/tachou/package.json'
npm WARN tachou No description
npm WARN tachou No repository field.
npm WARN tachou No README data
npm WARN tachou No license field.
192:~ tachou$

Could you please help me, how to change it? ? ?

phpcn_u1582
phpcn_u1582

reply all(1)
世界只因有你

You do not have a global installation. Global installation requires the -g flag

Because there is no package.json in the current directory, a warning was reported⚠️

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template