Questions tagged [npm-package]

464 questions
0
votes
1 answer

Laravel-Vue-Pagination error when trying to go to a different page

api.php Route::get('/products', 'ProductsController@index'); Query: $products = DB::table('sizes') ->join('products', 'sizes.id', '=', 'products.sizes') ->join('categories', 'products.category', '=', 'categories.id') ->select('products.*',…
Mike Shiv
  • 203
  • 4
  • 12
0
votes
1 answer

(node.js) install NPM and YARN alternately

Can I install NPM and YARN alternately? If I need package a and package b, can I install package a with NPM and package b with YARN? npm install a yarn add b
ddon
  • 185
  • 3
  • 4
  • 15
0
votes
0 answers

Problem with running .shp to .stl converter

I'm trying to convert a .shp to .stl in order to 3D-print the later as a model. I am following guides described in "Shapefiles" and "Using shp2stl to Convert Maps to 3D Models". Unfortunately shp2stl, the tool described in both articles, doesn't…
oldhomemovie
  • 14,621
  • 13
  • 64
  • 99
0
votes
1 answer

Is there any way to add environment variables to a npm package and modify it in azure build pipeline?

I've created one npm package which accesses few API's running in the backend. The URL to access those api's are hardcoded in the package. Most of the times we need to change the URL to point to some another api (different version pointing different…
Nikhil Patil
  • 83
  • 3
  • 8
0
votes
1 answer

Electron: Load a file with `executeJavaScript`

I need to inject an NPM package into a BrowserView by using executeJavaScript. The package is Web3 and here is what I've tried so far. import Web3 from 'web3' const web3 = '' + Web3; // stringify the Web3…
J. Hesters
  • 13,117
  • 31
  • 133
  • 249
0
votes
1 answer

ng build —prod getting failed but able to run

I am new to Angular environment and creating a project using Bootstrap 4 + angular material. I am using "material.module.ts" to import-export all required material components. When I am running the application with "ng serve" command, it is not…
0
votes
0 answers

Importing NPM Module

I have just forked a github project, made some changes and added it to my project. The problem is, I can't figure out how to import it into my project I tried this import statement: import Editor from 'editorjs-react' But it didn't work. Truth…
Moshe
  • 6,011
  • 16
  • 60
  • 112
0
votes
0 answers

How to import npm libraries in React

I'm trying to import the createjs lib into my react project. So I installed it via npm install createjs --save And there is a folder called createjs in node_modules. But when I try to import it with require("createjs") it says: "Module not found:…
Tom
  • 2,545
  • 5
  • 31
  • 71
0
votes
0 answers

Why when I have in my package dependence on other package I have an error?

I have published my first package. It works except one component. That component has a dependency on another package (not mine) when I test it with npm link without that dependency it works. But with a dependency I have an error: 'Invalid hook call.…
Noa
  • 424
  • 1
  • 3
  • 16
0
votes
3 answers

How to use multiselect drop down in angular 6?

I want to use multiselect drop down, to achieve this I have installed the angular2 multiselect drop down by the command npm install angular2-multiselect-dropdown --save also imported in app.module.ts as import { AngularMultiSelectModule } from…
user10469417
-1
votes
0 answers

I didn't Install the module of 'bcrypt' in VS code

I have to install bcrypt dependencies in VS code but they send me this message. npm ERR! code 1 npm ERR! path C:\Users\Admin\OneDrive\Desktop\MERN Stack Developer\Node & Express Project<0>node_modules\bcrypt npm ERR! command failed npm ERR! command…
-1
votes
2 answers

Installing an npm package, but this error comes up

$ npm install sillyname npm WARN tar TAR_ENTRY_ERROR UNKNOWN: unknown error, write npm WARN tar TAR_ENTRY_ERROR UNKNOWN: unknown error, write npm WARN tar TAR_ENTRY_ERROR UNKNOWN: unknown error, write npm WARN tar TAR_ENTRY_ERROR UNKNOWN: unknown…
-1
votes
1 answer

Publishing an npm package

How to use .ENV variables when publishing npm package. Is there any way to publish my npm package in any way with .env-variable? Thank you in advance! And i am using this version: "dotenv": "^16.0.3"
-1
votes
1 answer

Plotly.js `npm run custom-bundle` generates empty file (only header is included)

I followed instructions from this tutorial CUSTOM BUNDLE but even example command npm run custom-bundle -- --unminified --out myScatters --traces scatter,scattergl,scatter3d --transforms none generates empty file like this: /** * plotly.js…
Matej
  • 782
  • 2
  • 6
  • 19
-1
votes
1 answer

npm throwing error whenever i try to install some new npm package

I was working on this React project and from the beginning I am getting these but I ignored them all and used npm i package_name -f to install and surely do this command do the job but I want to know what things are causing the issue and I want to…
Naveen Singla
  • 76
  • 1
  • 8
1 2 3
30
31