Reputation: 10650
I am trying to install stylelint as explained here.
When installing i am getting below error:
Is it normal?
Upvotes: 0
Views: 919
Reputation: 70143
Those are not errors. Those are warnings. This will happen if you are using npm@6
and install with --save-dev
when you don't already have a package.json
file. The results are normal if you don't intend to have a package.json
file in your project, but that does mean that your dependencies are not being saved in package.json
for future installation. npm@6
will create a package-lock.json
file however.
In general, if you're just messing around to get familiar with stylelint
, you can ignore the warnings. If you are scaffolding a project, you probably want to create a package.json
first. To do that quickly, run npm init
.
If you update to npm@7
, the warnings do not show up and npm
creates the package.json
file for you instead. However it will only contain the devDependencies
entry when it is created. That may be OK depending on your use case. If in doubt, run npm init
first.
Upvotes: 1