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? ? ?
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⚠️