Most voted "npm" questions
nmp is the official package manager for Nodejs. Use the tag for questions about its use.
Learn more…218 questions
Sort by count of
-
0
votes1
answer119
viewsIs it possible to swap already installed packages from "dependencies" to "devDependencies" just by switching lines?
Here’s an example of the file package.json, installed using the command npm install <nome> --save-dev: { "dependencies": {}, "devDependencies": { "bootstrap": "^4.1.3", "cross-env": "^5.2.0",…
-
0
votes1
answer875
viewsNpm http-server not run after being installed
Good afternoon, on npm (Node package manager) installing http-server, would anyone have any idea why http-server is not being recognized? Editing ---> with the same live-server thing... some path…
-
0
votes0
answers13
viewsSQLITE3 installation via NPM finds 3 vulnerability
Good afternoon guys. I am trying to install sqlite3 with npm, and at the end of the installation it is reported that it had 3 vulnerabilities. I’ve done some research and I’d like to understand…
-
0
votes1
answer117
viewsIonic 3 problems running project [Uncaught(in Promise): cordova_not_available]
The project was not created by me. I am unable to run the project. When trying to run the project with the command ionic server returns the message Uncaught(in promise): cordova_not_available. I…
-
0
votes1
answer67
viewsAngular problems - NPM
When I give an npm install on my project, it makes me that mistake : gyp ERR! configure error gyp ERR! stack Error: unable to get local issuer certificate gyp ERR! stack at…
-
0
votes0
answers343
viewsProblem installing "@material-ui/core" package in my "create-React-app" application
I’m getting an error when I try to install the package @material-ui/core 3.9.0 in my application. When I execute yarn add @material-ui/core get the following return yarn add v1.12.3 [1/4] Resolving…
-
0
votes1
answer312
viewsIonic error while using social plugin
I’m trying to use the plugin socialSharing, I followed every step of this tutorial but when I press the button turns on the share function I get the error: 'Object is not a Function at…
-
0
votes2
answers10099
views'npm' is not recognized as an internal or external command, a operable program or a batch file
Good evening! I have this problem. I have tried some things I found on the net but nothing has worked so far. npm is installed ([email protected] C: Program Files nodejs node_modules npm) and PATH (C:…
-
0
votes1
answer282
viewsHow to import files from node_modules / folder into my view files?
I’m trying to learn some new technologies, so I decided to try npm, downloaded these packages (jquery and jquery-validation) using npm and now I’m trying to import these packages to my view file but…
-
0
votes1
answer113
viewssequelize problem with relays
Hello, I have some tables in mysql, I created the models using sequelize-auto and associations manually. The problem is that when I try to include these relationships I come across the error…
-
0
votes1
answer945
viewsError in npm run dev
I’m trying to execute command npm run dev in a project developed by another person. This is the configuration in package.json: "scripts": { "dev": "npm run development", "development": "cross-env…
-
0
votes0
answers338
viewscreate-React-app returning error 'Cannot find module 'React-scripts/scripts/init.js' '
When I try to create the React project with both npm and Yarn (create-React-app test), it returns the following error: internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module…
-
0
votes1
answer266
viewsHow to update @angular/core globally?
I did the update on angular/cli for the latest version (Angular 8), but when I create a new project, the @angular/core is in the version @7.2.15 and not in the version @8.1.0. The project gives…
-
0
votes1
answer115
viewsHow to recover a project using Angular 2 that was damaged with "npm update"
I’ve resumed my studies with Angular 2, and I’m trying to rebuild the design of this link step by step, but when executing the update of packages with npm update I can no longer test the project…
-
0
votes1
answer973
viewsNode-Sass error while trying to install the dependencies of an Ionic 3 project
Hello I have a project done in Ionic 3.2.0, the project in question can be found in the following link https://github.com/Mathe13/rodoviasApp, I downloaded it from git, removed the node_module and…
-
0
votes1
answer242
viewsProblem in angular design
I went to try to install the socket.io-client in my project and ruined my system Is giving the following message: Unhandled Promise rejection Error: Zone.js has Detected that Zoneawarepromise…
-
0
votes1
answer699
viewsProxy error npm install
I installed Nodejs and Angular, went to the prompty and tried to run npm install in my project folder, however, even after I set up the proxy with: npm config set proxy…
-
0
votes1
answer490
viewsFailed to install Electron in windows 10
I’m trying to install Electron in windows 10 using these commands: - git clone https://github.com/electron/electron-quick-start - cd electron-quick-start - npm install && npm start I’m…
-
0
votes2
answers603
viewsError while trying to generate apk - Ionic v 3.20.1
I have the following problem - I am trying to generate an APK in Ionic using the command below: npm run generate-apk After running this command, the following error message appears at the end: >…
-
0
votes1
answer43
viewsInstalling Babel-cli and live-server locally
I am installing Babel-cli and live-server locally, however, it is giving a problem saying that: run `npm audit fix` to fix 3 of them. 1 vulnerability requires manual review. See the full report for…
-
0
votes2
answers306
viewsError exporting footer in Reactjs
When running the npm start command returns the error below in the terminal, I am importing the file /components/footer/Footer.js in the archive /src/index.js //ERROR Failed to Compile.…
-
0
votes1
answer80
viewsexpo init/npm init creating many files
Good afternoon, you guys. I’m having a little trouble executing the expo init app. The command works, creates the React-Active files on my Windows correctly, but from a time to time it has failed to…
-
0
votes0
answers130
viewscreate-React-app by only creating Node module and package.json
I have a problem trying to create an application with React. Using the command npx create-react-app only is created the node_modules and the package.json and no more template that should come. I…
-
0
votes0
answers31
viewsI’m not able to solve npm dependencies
to receive this output when trying to use the npm i Movie-trailer command, vscode does not recognize the library. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]…
-
0
votes0
answers26
viewsDoubt autocannon working
I have read several times the autocannon documentation, but when I look at the result tables I cannot understand. In the first table, the second column shows 2.5%-5ms. Does this mean that 2.5% of…
-
0
votes1
answer102
viewsI can’t run create-React-app
When executing npx create-react-app my-app my terminal is not completed and at the end is created the folder that way: └─ my-app ├─ node_modules ├─ package.json └─ yarn.lock I’ve tried to npm…
-
0
votes1
answer55
viewserror : problem performing npm start , failed at the [email protected] start script - React
I’m trying to run my app on React by command npm start , but every time that comes along: # # Fatal error in , line 0 # Check failed: U_SUCCESS(status). # # # #FailureMessage Object:…
-
0
votes0
answers27
viewsES6 package only works on first load - webpack
I built a package based on CSS3 / CSS4, HTML5 and its Apis, the package contains 101 files and uses promises to differentiate the files and measure its priority, at the end of a promise, you may or…
-
0
votes0
answers82
viewsLaravel 8 Jetstream hot Reload and Sync browser do not work
Greetings to all, I have a big problem in a system that I just created. I did the standard installation of Laravel 8 with Jetstream using Docker and sail... But I can’t seem to do the npm run hot or…
-
0
votes1
answer34
viewsNPM does not recognize "npm install -g @angular/cli"
Good night to you all. This error occurs especially with CLI dependencies (such as with Vue.js, too). Follows the error presented PS Z:\projetos\LABORATORIO DE EXPERIMENTOS\Vue\VueJS> npm i -g…
-
0
votes1
answer35
viewsError installing packages with npm Node.Js
** gyp ERR!find Python gyp ERR!find Python Python is not set from command line or npm configuration gyp ERR!find Python Python is not set from environment variable PYTHON gyp ERR!find Python…
-
0
votes0
answers62
viewsFunction to work when I put import, Function does not work, import does not work
I got into a problem here that I can’t solve the problem and the next: I ran -> npm install fontfaceobserver then went there in the code -- code.js ai pus import --> import Fontfaceobserver…
-
-1
votes1
answer1914
viewsError Installing Ionic + Cordova
error messages when trying to install Ionic (npm install -g Cordova Ionic) Could someone help me? I am using Node 6.9. Thank you…
-
-1
votes1
answer639
viewsEnvironment Sweeps Configuration - Commands Not Working - Ionic
You are showing the following error: 'Ionic' is not recognized as an internal command or external, a operable program or a batch file. But this command appears only in Cmder, at the Node.js prompt I…
-
-1
votes2
answers295
viewsIonic 3 - Error generating build --Prod
I don’t want to generate the --Prod version using the "npm run build --Prod command". (I made a script that says "npm run Prod" means "npm run build --Prod", is in my package.json) Link to the…
-
-1
votes1
answer411
viewsError -4058 Npm install
Good afternoon, lately, when I try to install a dependency via npm install, it sometimes happens, already[! [insert image description here solved once deleting node_modules and giving an install…
-
-1
votes1
answer523
viewsUPDATE npm and Node
I’m with npm -v = 3.5.2 and node -v = v8.10.0 Operating system: ubuntu 18.04. Can someone help me update npm and Node? Thanks in advance, I did not succeed after several researches for update.…
-
-1
votes1
answer996
viewsModule not found: Can’t resolve 'Assets/css/custom.css'
I have a small problem when starting my project in React, when running the command Yarn start the terminal returns me the following error ./src/index.js Module not found: Can't resolve…
-
-1
votes1
answer69
viewsHow to publish a package to NPM with custom CLI
I created a folder structure developed for project in Nodejs, but I would like to publish it in NPM with a custom CLI, so that it was possible to choose what to install, something like:…
-
-1
votes1
answer157
views -
-1
votes1
answer690
viewsAttempted import error: 'Yup' does not contain a default export (Imported as 'Yup'). NPM
I am creating a site with authentication service and in it I intend to use Yup, an NPM module. I installed everything right but when I start the application it appears: Attempted import error: 'yup'…
-
-1
votes1
answer310
viewsYarn Doesn’t Start Development Server
Hi, I’m developing a site with React, but when using give command yarn start, he doesn’t incite my server.…
-
-1
votes1
answer24
viewsHow to use a repository like Package?
I started a project with create-React-library and made several customizable components with TS. A kind of Material UI. But this project cannot be public access. I previously wanted to post on npm, I…
-
-1
votes1
answer119
viewsAngular: Webpack has been initialised using a Configuration Object that does not match the API schem
I started having this error in my app at Angular 7, already tried to remove module folder, install, remove cache and nothing, the error remains. Invalid Configuration Object. Webpack has been…
-
-1
votes1
answer78
viewsDevelopment environment for Reactjs
I use the Visual Studio with Asp.Net and C# a few years ago and now I’m finishing some courses Reactjs. But I’m having difficulties with the development environment. None of the courses used the…
-
-1
votes1
answer245
viewsError installing sudo-free NPM packages
I have this difficulty, I wonder if it would be possible to run without sudo MacBook-Air-de-Alan:~ collins$ npm i -g react-native-cli npm WARN checkPermissions Missing write access to…
-
-1
votes1
answer349
viewsnpm ERR! code E405
While trying to install dependencies in my project, I get the following error message: I typed in npm i --save-dev [email protected] I received the above error. Same with other…
-
-1
votes1
answer94
viewsHow to pass values up in a tree in javascript
Hello, I’m doing an exercise that consists in making an algorithm that plays the game of old, so far I managed to generate all the game paths and detect which lead to victory or defeat and organizes…
-
-1
votes3
answers429
viewsError installing npm install @React-navigation/stack -> expo start Disconnected
I’m new to React Active and I’m trying to install the React navigation stack using the npm install @React-navigation/stack command to use in an app project with React Active, however after running…
-
-1
votes2
answers2609
viewsError running npm start (React)
I was developing a React project for web, everything normal, and without explanation the next day I could no longer run the application with npm start or yarn start. Follow my package.json and the…