Use gulp to quickly install google-webfonts with npm

Can anyone advise on whether gulp google-webfonts should be installed with --save-dev for devDependencies or --save for bower.json dependencies?

I am currently working on a project using Yeoman scaffolding with gulp and I am unfamiliar with this process.

Your help would be greatly appreciated. Thank you.

Answer №1

-install

  • "dependencies": these are the essential packages required for your application to run smoothly

--install-dev

  • "devDependencies": these packages are only necessary for development and testing purposes

Considering you'll likely require google-webfonts in your final build, I recommend using -install.

NPM Package Specification

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Unable to authenticate the initial certificate with Node

Out of the blue, my Node environments are experiencing issues with installing packages and freezing at idealTree:my-app : sill idealTree buildDeps Although I attempted to fix it by using npm config set registry http://registry.npmjs.org/ --global, it didn ...

Executing commands in the package.json file

Currently navigating a sizable codebase, my aim is to execute scripts from the package.json file exemplified below: https://i.stack.imgur.com/a1Rvu.png Whenever the command "npm start" is initiated, it defaults to the dev script resulting in an ...

Tips for uploading a jpg image to the server using react-camera

My objective is to transfer an image captured from a webcam to a Lambda function, which will then upload it to AWS S3. The Lambda function appears to work during testing, but I'm struggling to determine the exact data that needs to be passed from the ...

React-built NPM website fails to compile

After successfully running my website created with ReactJS on my local machine, I encountered an error when trying to build it using npm run build. The error message received was: > react-snap � pageerror at /personal-site/: SyntaxError: Unexpected ...

Converting require to import in es6 syntax: A step-by-step guide

I possess the Typeface Source Sans Pro font. At present, the syntax is require('typeface-source-sans-pro') I am interested in converting it to ES6 syntax using import. What is the proper method for accomplishing this task? ...

Encountering issues while running the npm build command due to exporting async functions in React

In my React project, I am utilizing async functions and have created a file named apiRequest.js structured like this: const axios = require('axios'); const serverURL = "http://localhost:8080" getInfo = async function ({email}) { try { r ...

Developing a Next.js shared library

I am looking to create Next.js components as shared components that can be utilized across multiple projects. 1- To get started, I have developed a basic component named "TextBox" located at src/lib/component/TextBox.js: import { useState } from "react"; ...

Error! React is unable to find the window object

I recently added the "react-speech" package to my application in order to incorporate text-to-speech functionality. However, upon importing the package, I encountered an error that has been challenging to resolve despite extensive research. Any assistance ...

Is the "node_modules" directory taking up too much space?

After running npx create-react-app, a node-modules folder is generated, which can be quite large at over 150 mb. I don't want this heavy folder to be created each time I start a new React project. Is there a way to avoid this issue and use React witho ...

Dropzone user interface package experiencing issues with displaying image previews

I recently installed the dropzone-ui package and noticed that while file items load and file icon previews show up when I drop files on the dropzone, image previews are not displaying. Could it be an issue with my implementation? Here's a snippet of ...

Unable to locate the specified path in create-react-native-app

Has anyone encountered the error "the system cannot find the path specified" while trying to run the command create-react-native-app my-app? I am using node 8.9.1 and npm 5.5.1. Interestingly, create-react-app works perfectly fine with all other npm comm ...

It is essential for npm to automatically install peer dependencies in the parent project without overlooking them

I am currently facing an issue with publishing a react application, let's call it project-A, as an npm package. This project has several dependencies like material-ui, dompurify, recharts, and more. In another application, project-B ...

What is the best way to address Peer dependency alerts within npm?

Here is a sample package.json that I am using for my application: dependencies : { P1 : “^1.0.0” // with peer dependency of p3 v1 P2 : “^1.0.0” // with peer dependency of p3 v2 } P1 and P2 both have peer dependencies on ...

Troubleshooting the transition from React version 16.0.0 to React version 18

I am encountering issues with my package.json file and Jenkins build, which fails due to the following problems. I'm currently running npm version 8.15.0 and Node version v16.17.1, while trying to upgrade from React 16 to React 18. package.json { & ...

I am encountering an error that reads: "Error: EPERM: operation not permitted, mkdir 'C:UsersAniket' and command not found: create-react-app." Can someone please help me figure out

When attempting to install a React app, I used the following command: $ npx create-react-app my-app However, I encountered the following error: Error: EPERM: operation not permitted, mkdir 'C:\Users\Aniket' command not found: create-re ...

Receiving error messages about missing images in my React project

I am new to programming and I have encountered an issue while running my React project. When I use the command npm start, I noticed that some image resources are not being packaged properly, resulting in certain images disappearing when the website is run ...

Encountering an ERR! message of missing script when trying to run the <npm start> command

Each time I attempt to run npm start, the frustrating "npm ERR! missing script: start" error appears. I have exhaustively attempted to modify the "start" line in the package.json file following all available suggestions on Google dating back a year. In a ...

Guide to transferring and transporting React to a different Application

I've developed two Apps named App1 and App2, both of which were created using create-react-app. However, App1 was created as a package using rollup and then linked with npm using 'npm link' or 'npm link [package name]'. When tryin ...

What could be causing a syntax error when I use `npm run start` with npm react-scripts?

After months of working on a full stack React app, I encountered an unexpected error when trying to run npm run start from the command line. The error message was as follows: // npm run start > [email protected] start /Users/eden/Documents/GitH ...

Encountering an issue with a Next.js app where it has become stuck during execution, the command "npm run dev

After successfully creating a simple next.js app and starting it with npm run dev, I encountered an issue when trying to start it for the second time: enter image description here Even after attempting to create a new project, the problem persisted. Inte ...