I am trying to determine the version status of my npm installed global packages. After running the npm outdated -g –depth=0 in the terminal I receive this error: Contents of /Users/dangranger/.npm/_logs/2019-03-14T21_58_37_962Z-debug.log Can anyone help resolve this issue for me? Thanks Answer If you do not want to go through the bother of uninstalling and reinstalling Node, you can manually edit
Tag: npm
Node error Cannot read property ‘resolve’ of undefined
I am using reactjs and am unable to install any packages using npm install. The error message I’m getting is : When I do npm install -verbose: I am not even able to uninstall npm and reinstall it as I am getting the same error when I try to uninstall. What is the issue here and how do I fix
angular 7 does not ask if to use routing when i create a new project
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 in my project or the styling. P.S: I have the latest version of Angular i.e 7.0.2. Answer ng new {Project-name} command
Run node module in browser
I’m trying to upload and read excel file using this node module: read-excel-file and according to the instructions under Browser I need to put this code in my .js file: But the browser doesn’t know what is import readXlsxFile from ‘read-excel-file’. It should be noted that I’m using http-server to see my project at http://localhost:8080/ Answer TL;DR: You have to
NPM registry install fails on non-registry dependencies
I’m trying to install my Ionic App through the registry with it’s dependencies. I try to achieve this with npm i –loglevel verbose while my ~/.npmrc looks like this: When watching the command run it seems to go just fine, until we hit other non-registry dependencies, suddenly I’m met with an authorisation error. Here is a paste of the command:
NPM: No valid rules have been specified for TypeScript files
I am writing small project in React.JS. Every time I run : npm run start, it logs this: No valid rules have been specified for TypeScript files I have highlighted the line with the error. Everything works good, but I am afraid that it could have effect when project will be bigger and more complex. What is this Warning/Error? How
Node engine 8.x or 10.x in package.json
I tried to specify the node engine in a package.json to accept both 8 and 10 version. I tried to type this: But running yarn results in: The engine “node” is incompatible with this module. Expected version “8.x|10.x” If I replace with: … it works (i.e no error). Is there a way to accept two versions of node engine in
Does npx look for globally installed packages?
I am using Node.js 10.1.0 and npm 6.0.0. I have installed a package with npm install -g example-package, Will npx look for it? What about npx -p example-package, does it only look on npm registry? Answer NPX included in NPM 5.2 which looks in your local/node_modules folder to avoid version mismatch with the globally installed package version If package is
Can’t install any NPM package, error 4058
I’m trying to install Grunt on my project. It used to work perfectly, but now for some reason, it does not. Every time i try to install Grunt, I got this error: The weird thing is that the missing package change every time. I try verifying the cache, removing the node_modules folder, cleaning the cache using –force. Uninstall NPM and
How to create a tree-view in vue-js with clickable components opening up a vue-js modal?
I want to create a tree-view component in Vue-JS to display my JSON data. But I have an additional requirement where I need to launch a VueJS modal on clicking any of the data fields of JSON view. I looked up at several npm modules that does display data in tree-view but I am not sure how to modify them