Issue I have a fresh virtualenv environment and have got the latest django-pipleline. The JS compression with Closure works perfect, but CSS compression with Yuglify fails, due a node error: STATICFILES_STORAGE = ‘pipeline.storage.PipelineCachedStorage’ PIPELINE_JS_COMPRESSOR = ‘pipeline.compressors.closure.ClosureCompressor’ PIPELINE_CSS_COMPRESSOR = ‘pipeline.compressors.yuglify.YuglifyCompressor’ When
Continue readingTag: npm
Not Able to Install Angular CLI due to Unexpected end of JSON input while parsing
Issue while installing angular/cli using npm I am getting below error. I even tried reinstalling node.js and tried to install angular cli through below commands npm install -g @angular/cli also tried npm install @angular/cli@latest -g but still same error is
Continue readinglogger.debug is not a function while using log4js
Issue I am using log4js for capturing the logs in node js. My node version is v10.16.3. When i run the code i am getting the error as logger.debug is not a function. Is there any node version compatibility? because
Continue readingfirebase-tools error: EACCES: permission denied
Issue I am trying to deploy Firebase hosting of my web app. At the command line, when I type firebase deploy, I get the following error. Note: firebase deploy is just one example. The same error occurs for all firebase
Continue readingBad: git cloning problems
Issue After cloning when i try to install it shows the following warnings and is unable to install. I clonned this very repo once before and it cloned successfully. But after that i had uninstalled git and deleted all the
Continue readingDifference in JSDelivr URL with & without "latest"
Issue I went to GitHub issues to raise a support ticket but thought of asking the question first to avoid noise. This is what the docs says- Omit the version completely or use "latest" to load the latest one (not
Continue readingIssue installing strongloop on Windows 7
Issue After attempting to install strongloop, It threw a few warnings and errors. Command used to install was: npm install -g strongloop Errors: c:\users\yoel\.node-gyp\4.2.4\include\node\v8.h(336): error C2988: unrecognizable template declaration/definition [C:\Users\Yoel\AppData\Roaming\npm\node_modules\strongloop\node_modules\heapdump\build\addon.vcxproj] c:\users\yoel\.node-gyp\4.2.4\include\node\v8.h(336): error C2059: syntax error : ‘using’ [C:\Users\Yoel\AppData\Roaming\npm\node_modules\strongloop\node_modules\heapdump\build\addon.vcxproj] c:\users\yoel\.node-gyp\4.2.4\include\node\v8.h(576): error
Continue readingStrongloop/Loopback 'slc build –npm' doesn't honor .npmignore
Issue My app has a client and an API in the same repo. The API side is built with slc build –npm, while the client is built with npm run build as triggered within the slc build command. I am
Continue readingstrongloop installation stuck at loadDep:sl-blip->network
Issue I am trying to install strongloop in my ubuntu system as the docs suggest by npm i -g strongloop Now for almost an hour it’s stuck with the line showing loadDep:sl-blip -> networ the spinner is spinning but that
Continue readingHow to publish multiple NPM modules from a single node project?
Issue The question is pretty straightforward: Is there some way to publish two different NPM modules to the npmjs registry from a single nodejs project? But for those of you wondering why the heck would someone even want to do
Continue readingCannot install StrongLoop with npm
Issue While trying to install StrongLoop with npm I get this error: $ npm install -g strongloop npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated node-uuid@1.4.7: use uuid
Continue readingCan't install Strongloop for Loopback v.3 on MacOS Catalina
Issue I’m trying to learn about Loopback v3 (which is what they are using on a job site where I’m working), and I’m trying to follow their tutorials. One of the steps is to install Strongloop npm i -g strongloop
Continue reading$elem.hide is not a function in angular-datatable
Issue I want to use pagination plugin angular-datatable .I installed it with bower but it does n’t work.It gives the below error TypeError: $elem.hide is not a function at Object.showLoading (http://localhost:8000/vendor/angular-datatables.js:698:15) at postLink (http://localhost:8000/vendor/angular-datatables.js:47:31) at http://localhost:8000/vendor/angular.js:8783:44 at invokeLinkFn (http://localhost:8000/vendor/angular.js:8789:9) at
Continue readingERROR in Metadata version mismatch for module X found version 4, expected 3, resolving symbol Y
Issue I’m trying to build an Angular 4 app with angular-cli (ng build) and which uses ngx-clipboard. I suddenly started getting the following error a few days ago, even though my application source code has not changed: ERROR in Metadata
Continue readingNode.js, Express, Jade & Template in Package
Issue Is it possible to store templates for an express application in a separate package? In my usecase I’d like to have a shared package containing global templages to give all apps the same look and feel even so they
Continue readingnpm ERR! Cannot read property 'resolve' of undefined
Issue Almost every command I run with “npm” and some with “ng” returns this error. I am starting with Nativescript and angular and I am very lost here… Any idea about where these errors could come from? For example, trying
Continue readingAn unhandled exception occurred: Cannot find module '@angular-devkit/build-angular/package.json' Require stack
Issue ng serve Response: An unhandled exception occurred: Cannot find module ‘@angular-devkit/build-angular/package.json’ Require stack: I tried npm install –save-dev @angular-devkit/build-angular Response: npm WARN reify please re-try this operation once it completes npm WARN reify so that the damage can be
Continue readingHow should I resolve this error that occurs when using ng new?
Issue I’ve installed the angular-cli with the command npm install -g @angular/cli. When I try to run the command ng new and create a new project, an error occurs: ⠙ Installing packages (npm)…npm WARN deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated npm ERR!
Continue readingnew angular 14 project made by cli missing multiple packages
Issue I have updated my global angular version to 14.1.0 and just created a new project inside my project I tried to do this: ng g m views/my-module but the module is not created and this error occurs in terminal:
Continue readingng build –prod failed after ag-grid v 22.1.1 upgrade
Issue I’ve started using ag-grid since its version 18 and currently at 20.0.0 I am in the process of upgrading to its latest version – 22.1.1. After resolving warning/errors due to breaking changes, everything – including ‘ng serve’ works fine.
Continue readingAngular error when run this command "npm run dev:ssr" to watch the website how server side rendering is done in localhost
Issue When run this command it start listening at port 4200 but it continuously loading the page but never load the page and show this error in cmd. Unhandled Promise rejection: connect ECONNREFUSED 127.0.0.1:6379 ; Zone: <root> ; Task: Promise.then
Continue readingHow do I remove Apollo-Angular and ALL its dependeces?
Issue After I installed apollo-angular and @apollo/client I decided that I don’t want them anymore, but using "npm uninstall apollo-angular" and "npm uninstall @apollo/client" only deletes the apollo-angular and @apollo/client folders. I want to clean up my project from all
Continue readinghow to install latest version of primeng 7.1.0
Issue I’m using angular 7.1.0 and present i’m using primeng 6.1.6.How to upgrade my version to primeng 7.1.0.I tried some commands like npm install primeng –save. but it is not working.and it is showing some error like this… PS E:\srini_vision\skopiq-vision-web\angular>
Continue reading'Package install failed error' while using ng new project
Issue When I try ng new project I get the errors below. What am I doing wrong? npm WARN tarball tarball data for @angular/compiler@~7.1.0 (sha512-ua6Wh+c5XzxAeJT6guwAFYnwa1XzJpncppUrceRXIS9VAn9X7ApxRr45DvbVeYwXBb1iNdHWtZFm1koFVQpydA==) seems to be corrupted. Trying one more time.*** npm WARN tar ENOENT: no such file
Continue readingHow to find angular-route is already installed in my machine using npm
Issue I am a beginner to angular js and learned how to use directives. Now, as part of learning MVC model I want to separate models from view for that, I have created respective html and js file. On angular
Continue readingaccordion (ng2-accordion) in angular2
Issue Am using accordion with angular-2,but its not working properly,its throwing an error 404, its a third-party plugin named “ng2-accordion”. Path of the package that am giving is correct. Actual bug in the inspect is given below. GET http://localhost:3000/ng2-accordion/ng2-accordion 404
Continue readingAngular2 ng2-bootstrap UNMET PEER DEPENDENCY
Issue I am trying to install ng2-bootstrap with npm but it gives these errors/warnings: How can I fix this? Solution ng2-bootstrap requires latest releases of Angular 2 libraries (RC5), so you need to update your package.json file to download them.
Continue readingENOTDIR error on npm install (npm 3 over node 4. I know: legacy. Sorry :( )
Issue First of all, my apologies for reporting a problem of npm3 here, but it looks like the old repo is currently in read only mode. We have a big and old angularjs frontend app, that requires node4 and uses
Continue readingENOENT Error while trying to install Nativescript 8
Issue I’m trying to build a new NS8 project. I have another NS6.5 project on my computer, but it’s in a different folder. When running npm install -g nativescript in a different folder, I get the following error 2323 verbose
Continue readingError in starting the lite-server using NPM
Issue npm ERR! code EJSONPARSE npm ERR! file C:\Users\thehitmanranjan\Desktop\git-test\package.json npm ERR! JSON.parse Failed to parse json npm ERR! JSON.parse Unexpected string in JSON at position 240 while parsing ‘{ npm ERR! JSON.parse “name”: “git-test”, npm ERR! JSON.parse “version”: “1.’ npm
Continue readingangular-oauth2-oidc library can't load jsrsasign module
Issue I’m trying to upgrade a dependency in Angular for a project forked from : https://github.com/mgechev/angular-seed The dependency is: https://github.com/manfredsteyer/angular-oauth2-oidc however I’m not quite sure how my System.JS files needs to look to properly load the jsrsasign dependency that oauth2-oidc
Continue readingError deploying to Vercel (Error: Command "npm run build" exited with 127)
Issue I’m using parcel-bundler for sass on my projects, I’ve always used npm start instead of npm run build and it has always worked for me. But this time, when I try to deploy my project on Vercel, it failed
Continue readingGet path of exact dependency from node_modules package
Issue How can I get path of exact dependency from a certain node_modules package? For example: |- node_modules/ |- package-a@2.1.0/ |- package.json |- package-b/ |- node_modules/ |- package-a@1.0.0/ |- package.json |- package-c/ |- package.json Is there a way I can
Continue readingfrontend-maven-plugin failing in npm install with error "npm ERR! cb() never called"
Issue I am trying to use frontend-maven-plugin to build springboot + react project,I am successfully able to run the build in local machine but when the build runs in a teamcity agent it fails. I have to bypass corporate proxy
Continue readingFetch is not Defined
Issue I’m very new to Javascript and just built my very first bot, I try to run my bot and it WORKS! But when I use the discord command it crashes on Repl.it. I have done npm install node-fetch but
Continue readingHow do you run a script in CodeSandBox?
Issue I have a simple app.js file in codesandbox. Normally in VSCode with nodejs installed, I can just run node app and the file runs How can I do the same on codesandbox? Solution it auto starts with nodemon so
Continue readingnpm solc: AssertionError [ERR_ASSERTION]: Invalid callback specified
Issue I am trying to compile solidity smart contract using npm solc. I tried to follow different examples. Link to example: https://medium.com/coinmonks/how-to-compile-a-solidity-smart-contract-using-node-js-51ea7c6bf440 I wrote my code like following: const path = require(‘path’); const fs = require(‘fs’); const solc = require(‘solc’);
Continue readingIs there any way to fix package-lock.json lockfileVersion so npm uses a specific format?
Issue If two different developers are using different versions of node (12/15) & npm (6/7) in a project that was originally created using a package-lock.json "lockfileVersion": 1, when the developer using npm 7x installs new packages it seems that the
Continue readingWhy Do I Have "joinAdInterestGroup" Scriplets and Tracing in My Console After Installing React-Scripts as a DevDependency?
Issue I reinstalled "react-scripts" (5.0.1) as a devDependency to get around the npm audit false-alarm issue that flags one of its dependencies as a severe vulnerability. Starting after that (as far as I can tell) not only do I get
Continue readingcreate-react-app "Failed to compile" on start up
Issue I am getting the following error when using npm start to open create-react-app. I’m new to React and I have had no problems the past few days doing the command line to make a new app. I have tried
Continue readingWhy npm keep asking me for license information even though it set "UNLICENSED"?
Issue I have already set the package.json with following code for my company private project. { … "license": "UNLICENSED", "private": true, … } but npm seems not giving up asking me for the license. yarn run v1.22.19 warning ../../../package.json: No
Continue reading'rm' is not recognized as an internal or external command when trying publish a capacitor plugin
Issue I am trying to publish a capacitor plugin. According to the error it is not able to recognize rm. I am using Window’s Powershell (VC Code) The following error is being generated in the powershell when npm publish in
Continue readingMSBUILD : Configuration error MSB4148 "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0" has zero length
Issue I’m trying yo install electron-chromedrive by using yarn, so by doing this command: yarn add –dev electron-chromedriver –network-timeout 100000 But it gives the following error: MSBUILD : Configuration error MSB4148 "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0" has zero length Precisely: gyp ERR! build error
Continue readingReact – Minified exception occurred
Issue I have React js installed via NPM and using browserify to manage components in react. When an exception occurs in React, the console shows as “Uncaught Error: Minified exception occurred; use the non-minified dev environment for the full error
Continue readingNPM install permission denied error using root user
Issue So I’ve made a fresh installation of npm/node on my local machine using NVM using root user and everything looks fine, now my issue is when I tried to install using npm install –unsafe-perm -verbose command on my project
Continue readingUnable to install react-beautiful-dnd package
Issue *Below is the full error stack message while installing the package npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: freeboard@0.1.0 npm ERR! Found: react@17.0.1 npm ERR! node_modules/react npm ERR!
Continue readingnpm install error code EBUSY errono -4082
Issue I am running windows7 and have just installed the following… c:\design_centre_dev\workspace>node -v v5.10.1 c:\design_centre_dev\workspace>npm -v 3.8.6 I’m having issues running npm install on my node project which one of my fellow dev’s says he has no trouble with and
Continue readingnpm ERR! Cannot read property ‘match’ of undefined error handling
Issue When I’m trying to npm install my Nest.js repository, I get this error : npm ERR! Cannot read properties of null (reading ‘matches’) npm ERR! A complete log of this run can be found in: npm ERR! /Users/twalterspieler/.npm/_logs/2022-06-03T21_28_12_401Z-debug-0.log Any
Continue readingIn WSL2: Ubuntu 20.04 for Windows 10 nodejs is installed but npm is not working
Issue I am using WSL2: Ubuntu 20.04 in my Windows 10 operating system. I have installed nodejs using the command sudo apt-get install -y nodejs when I do node -v command I get v12.18.3 mrd@DESKTOP-2EO5K4H:/mnt/c/Users/musfi$ node -v v12.18.3 but when
Continue readingFirebase hosting deployment failing
Issue Running firebase deploy will run for a few minutes before giving me a timeout error Error: ESOCKETTIMEDOUT I’ve successfully deployed multiple times earlier, without changing anything but the frontend of my project (written in React). I have a separate
Continue readingHow can I use NPM modules with Django inside an app?
Issue I have a Django project with 2 apps. I want to use the Notion API in one of the apps, so I have to install it’s NPM module. However, I have never use NPM nor a bundler (I understand
Continue readingError in emotion/styled package, cannot find answer ANYWHERE
Issue I keep getting the following error, I’m using meteor 2.1 currently Error: A new entrypoint in the @emotion/styled package, @emotion/styled/base, has replaced the @emotion/styled-base package. Please remove this package and use @emotion/styled/base instead. i cannot find ANY way to
Continue readingHow do you prevent install of "devDependencies" NPM modules for Node.js (package.json)?
Issue I have this in my package.json file (shortened version): { “name”: “a-module”, “version”: “0.0.1”, “dependencies”: { “coffee-script”: “>= 1.1.3” }, “devDependencies”: { “stylus”: “>= 0.17.0” } } I am using NPM version 1.1.1 on Mac 10.6.8. When I run
Continue readingnx.dev creating first app failure with cannot find module
Issue In trying out nx.dev, I ran this command npx nx generate @nrwl/node:app ghApi and received this error Unable to resolve @nrwl/node:app. Cannot find module ‘@nrwl/node/package.json’ Require stack: – /Users/dean/workspace/gazehealth/nxdev-workspace/node_modules/nx/src/utils/nx-plugin.js – /Users/dean/workspace/gazehealth/nxdev- workspace/node_modules/nx/src/config/workspaces.js – /Users/dean/workspace/gazehealth/nxdev-workspace/node_modules/nx/src/command- line/generate.js – /Users/dean/workspace/gazehealth/nxdev-workspace/node_modules/nx/src/command-line/nx-commands.js – /Users/dean/workspace/gazehealth/nxdev-workspace/node_modules/nx/bin/init-local.js
Continue readingStrapi: Auto-populate the field values based on the values in other fields in a content type
Issue Strapi Version: v4 Operating System: macOS Database: MySQL Node Version: 16.15 NPM Version: 5.8.8 I am trying to populate a field based on the value in other fields. Example: I have a content type with fields city = Mumbai
Continue readingError reading webpack-stats.json. Are you sure webpack has generated the file and the path is correct?
Issue I installed django with Vue and got this eror in runtime: Error reading webpack-stats.json. Are you sure webpack has generated the file and the path is correct? alongside manage.py: vue create frontend Default ([Vue 3] babel, eslint) cd frontend
Continue readingCan't publish to npm
Issue I do npm publish and goes through all the checks but then it returns the following\ 48 error code E403 49 error 403 403 Forbidden – PUT https://registry.npmjs.com/tictactoe – You do not have permission to publish "tictactoe". Are you
Continue readingnpm Install fails error Build failed with error code: 1
Issue 9879 error gyp info it worked if it ends with ok 9879 error gyp verb cli [ 9879 error gyp verb cli ‘C:\Program Files\nodejs\node.exe’, 9879 error gyp verb cli ‘C:\Projects\.\node_modules\node-gyp\bin\node-gyp.js’, 9879 error gyp verb cli ‘rebuild’, 9879 error gyp
Continue readingnpm install results in "node not recognized as internal or external command"
Issue Both node and npm is installed prior to running npm install $ node Welcome to Node.js v16.15.0. Type ".help" for more information. > $ npm -v 8.11.0 npm install results in "node not recognized as internal or external command"
Continue readingA listener indicated an asynchronous response by returning true, but the message channel closed before a response was received, What does that mean?
Issue I’m working on a React application and I use some npm modules, one of which I had to build myself. My NPM package It is a simple modal that opens and closes with a useState() Since I imported my
Continue readingv-model throws ReferenceError only in Production
Issue I have the following View in Vue: <script setup> import Overwrite from "../components/Overwrite.vue"; </script> <template> <div> … <textarea v-model="text" cols="99" rows="20"></textarea> … </div> </template> <script> export default { data() { return { text: "" }; }, components: { Overwrite:
Continue readingAngular project is compiling successfully but has many errors in html file
Issue I use Angular, and ABP, and I installed npm packages. The project was compiled successfully and the page was opened but there are so many errors occurred. Especially there are many irrelevant errors from each other in the HTML
Continue readingVagrant filesystem issues with npm
Issue I have been encountering an issue with Vagrant machines and npm. Files within the file-system suddenly become read-only. In all cases, a synced directory, that contained a Git repository, was involved. The following is a provisioning setup that enables
Continue readingTailwind config not exporting all css
Issue I am trying to publish the full tailwind 3.0 css library in a fresh laravel 8.* project with the view to use the corePlugins section to remove what I do not need. The thing is although the setup was
Continue readingCannot build Shopware 6 admin with npm 8.11
Issue When running bin/build-administration.sh we get npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: eslint-config-airbnb-base@13.2.0 npm ERR! Found: eslint@7.10.0 npm ERR! node_modules/eslint npm ERR! dev eslint@"7.10.0" from the root project npm ERR!
Continue readingHow to resolve npm ERR! ERESOLVE unable to resolve dependency tree – simple react lightbox?
Issue I’m trying to resolve an error with my Gatsby project. I got the following error when I run npm update in my CLI: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR!
Continue readingModifying an npm package locally to manually fix dependency tree issues?
Issue In the process of learning nest.js, I’ve run into an npm dependency tree issue. I’m attempting to do something like npm install –save-dev @types/bcrypt @types/passport @types/passport-jwt. This (and similar npm commands) will throw this error: npm ERR! code ERESOLVE
Continue readingIs it possible to run only specific tests on Cypress through support/index.js?
Issue I am trying to run only specific test. Say I have 50 test files inside integration folder and want only 10 of them to run. I am trying to configure this from support/index.js file like: import ‘./commands’ import ‘../integration/login.spec.js’
Continue readingangular 7 does not ask if to use routing when i create a new project
Issue I was formerly using Angular version 6, now I have upgraded to 7. But when I try to create a new project in CLI using ng new [app-name] it just starts without asking if I want to include routing
Continue readingTrouble running package.json commands
Issue I am trying to run some commands I wrote in my package.json to test environment variables. However, when I try to run them in the Node.js command prompt, it throws me an error. My package.json looks like this: {
Continue readingI Can't remove AWS-CDK from Linux
Issue I have installed AWS-CDK on my system. It has been some time since the install, and I can’t quite recall the mechanism used to install it, but I cannot seem to remove it now; ~:> which cdk /usr/local/bin/cdk trying
Continue readingUpdating NPM Requires New Version of NPM(deadlock) With engines Requirement in package.json
Issue When requiring a strict version of npm in package.json with an .npmrc file it gives an error when running npm ci as expected, but does not allow the npm version to be updated. package.json "engines": { "npm": "8.7.0" }
Continue readingI am trying to host my react website on netlify but there is a npm install error
Issue I need some help! I’m trying to host on my reacy website on netlify but npm install error happens. Could you help me with solving this problem? Here is a error comments 12:28:19 AM: Installing NPM modules using NPM
Continue readingRider npm run configuration failing
Issue I’m trying to set up debug environment in Rider for React application. I have created an empty react app by by using npx create-react-app. The app could be launched by npm start command in cmd, which works perfectly. Now
Continue readingNpm Including all range of pre-release when defining peer-dependency
Issue I am maintaining an NPM package (lets say it as package-A) that relies on an another NPM package(package-B) to function. Therefore, I am in need to add that package as peer-dependency into the package.json, so that npm and the
Continue readingWhat is the meaning of Intellij node_modules folder colors?
Issue What is the meaning of those node_modules folder colors ? How would those folder be differents when they were all installed using npm ? More broadly how can we view meta-data associated to a folder ? To understand what
Continue readingInstall package only for one project
Issue Let’s say I have this file hierarchy: packages/project1 packages/project2 and the workspace is packages/* How do I install an npm package only for project1 and not for project2 (without using just "npm install" inside the packages/project1 directory because I
Continue readingUpdate vsts-npm-auth with new username and password
Issue I have installed the vsts-npm-auth package using following command: npm install -g vsts-npm-auth –registry https://registry.npmjs.com And I ran vsts-npm-auth -config .npmrc command to set the credential but I am facing below error: Now I need to update the credential
Continue readingnpm start : Failed start script 'ng serve'
Issue Just to clarify this: I’m completely new to AngularJS and to any Web Technology. I’m a beginner when it comes to Web Development. I tried to install it and I’ve gotta admit, after many “Unknown Buttons Pressings“, I may
Continue readingNext.JS: Cannot find module '@emotion/react'
Issue I’ve been using Next.JS to make a test project to learn the framework. So far so good until I decided to use MUI to create a table so using npm I installed @mui/material @emotion/react and @emotion/styled but when it
Continue readingSet-ExecutionPolicy Restricted should I use it like that always?
Issue I was getting error when I try to use NPM commands on powershell (Win11) and I fixed it with this powershell command: Set-ExecutionPolicy RemoteSigned But I’m unsure if I can leave it like that for always is it safe
Continue readingElectron Builder cannot move downloaded into final location (another process downloaded faster?) error=rename
Issue “electron-builder”: “^20.38.5” Not using electron updater Target: Windows Running electron builder on windows 10 Home build process cannot package and presents this error cannot move downloaded into final location (another process downloaded faster?) error=rename C:\Users\Developer\AppData\Local\electron-builder\Cache\winCodeSign\105845327 C:\Users\Developer\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.4.0: Access is denied.
Continue readingQuerying the API via JavaScript / CORS (teamup.com calendar)
Issue I am currently trying to figure out how to query the API of a calendar on teamup.com and retrieve data (events in the calendar) from it. There’s a code example on their website: Querying the API via JavaScript /
Continue readingFailed to load plugin 'import' declared in '… » eslint-config-standard': Cannot find module 'eslint-plugin-import'
Issue I’ve been trying to use ESLint along with Standard and I haven’t been able to get it to work. I’ve tried setting it up through eslint –init, uninstalling eslint globally and having all the packages locally, installing each package
Continue readingHow to install private git library to npm project?
Issue In a project which I work with there is private project library which is available for me directly – https://gitlab.some-project/some-utils In package.json it is requested like "dependencies": { "@some-project/some-utils": "0.1.42", … } This project wasn’t uploaded to npm. I
Continue readingPermanently disable git tag version for npm version
Issue When running the command "npm version" you can provide a –no-git-tag-version flag to stop tags from being generated and committed. Is there a way to make this the default behavior so I don’t have to remember to type –no-git-tag-version
Continue readingHow to npm publish specific folder but as package root
Issue I have a project that include a gulp task for building and packaging the sources and release in a directory called dist. My goal is publish it as a npm package, but only my dist folder. The npm documentation
Continue readingPhpStorm does not compile scss to css. "Error env: node: No such file or directory" MacOS
Issue Npm, node, node-sass, and JDK are installed on the mac. The file is compiled correctly from the console: But there is an error in PhpStorm: Also checked that PhpStorm sees node and npm: What else could be the reason
Continue readingNodeJS: How to use image-size with base64 image?
Issue I found the node module image-size and want to use it to get the dimensions of a base64 encoded image. The tutorial gives the following example for getting the dimensions: var sizeOf = require(‘image-size’); var dimensions = sizeOf(‘images/funny-cats.png’); console.log(dimensions.width,
Continue readingSvelteKit: "Error: request.query has been replaced by request.url.searchParams"
Issue I wanted to try out SvelteKit on MacOs 11.5.2. Using node v16.13.1, npm 8.1.2. I have installed the SvelteKit as per original guidance: npm init svelte@next my-app cd my-app npm install npm run dev — –open Then, when localhost:3000
Continue readingPinning typescript version during cdk init
Issue I am creating a new CDK app in typescript using the following command: npx –yes cdk@1.138.2 init app –language typescript –generate-only The package.json file thus generated has a typescript version ^3.9.7. I would like to use version 4.6.4 instead.
Continue readingNodemon is not recognized as an internal command operable program or batch file
Issue I was working with NodeJS, but due to some other issue I installed Windows again. Now I have installed nodemon gloabally and it also show version in C drive, but when I try to run project it gives me
Continue readingUnable to resolve dependency tree with eslint-config-airbnb
Issue when I’m trying to install eslint-config-airbnb with npx install-peerdeps –dev eslint-config-airbnb I’m getting following error (–legacy-peer-deps flag doesn’t help): npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: favnote@0.1.0 npm ERR! Found: eslint@7.2.0 npm
Continue readingCant install NodeMon (command not found: nodemon)
Issue I’m trying to install NodeMon for my Node js project. I have tried installing via npm. npm install nodemon Provided following result npm WARN saveError ENOENT: no such file or directory, open ‘/Users/nodejs/package.json’ npm notice created a lockfile as
Continue readingHow do you uninstall all dependencies listed in package.json (NPM)?
Issue If I have a package.json file defined in my application root and run npm install -g it will install all the dependencies defined in package.json, globablly. However, this doesn’t seem to work in reverse. If I do npm uninstall
Continue readingHow to know under what Node.js version work a given package
Issue Lets say I have express.js v3.16.9, how can I know under what node version will it work in order to know if I have to downgrade or upgrade? Solution I would search for the source code of that version;
Continue readingWhen NPM says found 0 'vulnerabilities' – what does it mean by 'Vulnerabilities'?
Issue I understand what a vulnerability is – in essence, a fault in security. However, is npm simply reporting on all known vulnerabilities? Or does it somehow automatically scan every package in its registry? I’m assuming it’s the first &
Continue readingMalloc error when trying to run node js server due to ibm_db module
Issue I have a nodejs application, and configured to run on port 5001. When I try to run the node server using node server.js, it throws me an malloc error like below node(6080,0x1067aa600) malloc: *** error for object 0x7ffb503d2670: pointer
Continue readinghow to include python files in node js build
Issue I’m stumped here… I have a node server that calls to a python file for some quick data processing using the spawn approach (How to call a Python function from Node.js) …and I got it working from the npm
Continue readingnpm install returns Syntax Error: Unexpected identifier
Issue All of a sudden, when updating the packages in my app using npm install, I get the following error: module.exports = async process => { ^^^^^^^ SyntaxError: Unexpected identifier at Object.exports.runInThisContext (vm.js:76:16) at Module._compile (module.js:542:28) at Object.Module._extensions..js (module.js:579:10) at
Continue reading