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

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

Installing Bower on Ubuntu

I’m trying to install Bower on XUbuntu 13.10, following the instructions on the Bower home page, after doing sudo apt-get install npm and sudo npm install -g bower I get the following after issuing bower on the command line: /usr/bin/env: node: No such file or directory I then install Node (even though I assume that … Read more

Do I need both package-lock.json and package.json?

After updating my NPM to the latest version (from 3.X to 5.2.0) and running npm install on an existing project, I get an auto-created package-lock.json file. I can tell package-lock.json gives me an exact dependency tree as opposed to package.json. From that info alone, it seems like package.json is redundant and not needed anymore. Are … Read more