search

Home  >  Q&A  >  body text

node.js - [nodejs] Problems encountered when installing bower

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_u1582phpcn_u15822753 days ago509

reply all(1)I'll reply

  • 世界只因有你

    世界只因有你2017-05-16 13:31:00

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

    reply
    0
  • Cancelreply