简体   繁体   中英

Where do I place npm install?

I am trying to add this frosted glass effect but I do not know where to place npm install frosted-glass --save

Where do I put this? I use atom code editor, I have nodejs but I just don't understand where to put this npm install frosted-glass --save despite all the info I looked up. I also haven't seen a question phrased exactly like mines.

Effect: frosted glass effect github

Have you installed npm? take a look at this => https://docs.npmjs.com/cli/v6/commands/npm-init

Try to follow these: (you need to install npm on your project, if done properly you should see package.json inside your project)

  • Open terminal (iTerm) or Windows Terminal
  • cd to the project from terminal. Example: cd Sites/my-project
  • on this project you can type npm i frosted-glass

If npm confuses you, you can try to include frosted-glass using <script src='https://unpkg.com/frosted-glass/dist/frostedglass.js'></script> See their example: https://codesandbox.io/s/github/adriancarriger/frosted-glass/tree/master/demos/vanilla/navbar?file=/index.html:364-416

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM