Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`

Recently, when I compile my scss files I get an error. The error message says: Browserslist: caniuse-lite is outdated. Please run next command npm update caniuse-lite browserslist First, as the message says, I ran npm update caniuse-lite browserslist but it didn’t fix the issue. I deleted the whole nod-modules directory and installed again, also I … Read more

Node package ( Grunt ) installed but not available

I’m trying to build a github jquery-ui library using grunt, but after running npm install I still can’t run the command according to the readme file. It just gives No command ‘grunt’ found: james@ubuntu:~/Documents/projects/ad2/lib/jquery-ui$ grunt build No command ‘grunt’ found, did you mean: Command ‘grun’ from package ‘grun’ (universe) grunt: command not found james@ubuntu:~/Documents/projects/ad2/lib/jquery-ui$ npm … Read more

How to publish an npm package with distribution files?

I would like to publish a npm package that contains my source as well as distribution files. My Github repository contains src folder which contains JavaScript source files. The build process generates dist folder that contains the distribution files. Of course, the dist folder is not checked into the Github repository. How do I publish … Read more

NPM – How to fix “No readme data”

I have a simple package.json: { “name”: “camapaign”, “version”: “0.0.1”, “scripts”: { “start”: “node app.js” }, “engines”: { “node”: “0.10.15”, “npm”: “1.3.5” }, “repository”: { “type”: “svn”, “url”: “” } } When I execute “npm install” i get the following warning which I would like to fix: “npm WARN package.json [email protected] No readme data.” I … Read more

What is the difference between npm-shrinkwrap.json and package-lock.json?

With the release of npm@5, it will now write a package-lock.json unless a npm-shrinkwrap.json already exists. I installed npm@5 globally via: npm install npm@5 -g And now, if a npm-shrinkwrap.json is found during: npm install a warning will be printed: npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated … Read more

NPM stuck giving the same error EISDIR: Illegal operation on a directory, read at error (native)

I am stuck with this error no matter what directory I am in, and what I type after “npm” in cmd.exe. Here is the npm-debug.log: 0 info it worked if it ends with ok 1 verbose cli [ ‘C:\\Program Files\\nodejs\\node.exe’, 1 verbose cli ‘C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js’ ] 2 info using [email protected] 3 info using [email protected] 4 … Read more