npm install error after installing nodejs - node.js

I have a problem to install the npm, These are my errors, there are lot of errors , but i paste some of these here, please tell me what should i do?I have already installed nodejs , mongodb and all..
npm WARN package.json hublin#0.1.0 No repository field.
npm WARN package.json awesome-collaborative-editor#1.0.0 No description
npm WARN package.json awesome-module#1.0.0 No README data
npm WARN package.json awesome-yjs#0.0.0 No description
npm WARN package.json chokidar#1.5.1 No README data
npm WARN package.json karma-mocha#0.1.1 No README data
npm WARN package.json karma-phantomjs-launcher#0.1.4 No README data
npm WARN package.json karma-rawfixtures-preprocessor#0.0.1 No repository field.
npm WARN package.json om-email-invitation#0.0.3 No README data
npm WARN package.json om-invitation#0.0.2 No README data
npm WARN package.json om-mailer#0.0.1 No README data
npm WARN package.json trim#0.0.1 No repository field.

Related

facing issues whille installing npm ts loader and npm css loader

I am getting all these warning while installing ts loader and css loader..
npm ts loader
user#user-ThinkPad-T420s:~$ npm install --save-dev ts-loader
npm WARN saveError ENOENT: no such file or directory, open '/home/user/package.json'
/home/user
`-- ts-loader#2.1.0
npm WARN enoent ENOENT: no such file or directory, open '/home/user/package.json'
npm WARN user No description
npm WARN user No repository field.
npm WARN user No README data
npm WARN user No license field.
npm css loader
user#user-ThinkPad-T420s:~$ npm install --save-dev css-loader
npm WARN saveError ENOENT: no such file or directory, open '/home/user/package.json'
/home/user
`-- css-loader#0.28.2
npm WARN enoent ENOENT: no such file or directory, open '/home/user/package.json'
npm WARN user No description
npm WARN user No repository field.
npm WARN user No README data
npm WARN user No license field.
can anyone tell me how i can fix this ?
This is happening because you pass --save-dev parameter to npm when you install ts-loader and css-loader modules in a directory with no package.json in it.
If this is a new project, I suggest you to start by npm init, as it will create you a fresh package.json file for your project.
You can always install dependency globally if you needed it for more than one project:
npm install -g ts-loader css-loader
Others alert are not very important, but you can add a licence and a README file to get rid of it if you care.

Need a solution for npm install

I Got error like no such file or directory open in my path:
npm WARN ENOENT ENOENT: no such file or directory, open 'C:\Users\
ge.json'
npm WARN EPACKAGEJSON spandana No description
npm WARN EPACKAGEJSON spandana No repository field.
npm WARN EPACKAGEJSON spandana No README data
npm WARN EPACKAGEJSON spandana No license field.
please uninstall the same module then install it. It should be resolved.

NPM Warnings - "... is also the name of a node core module."

My Node app constantly displays the following warnings when running npm install, or installing new modules. Am I declaring these modules unnecessarily somewhere or is this expected behaviour?
npm WARN package.json fs#0.0.2 fs is also the name of a node core module.
npm WARN package.json fs#0.0.2 No description
npm WARN package.json fs#0.0.2 No repository field.
npm WARN package.json fs#0.0.2 No README data
npm WARN package.json http#0.0.0 http is also the name of a node core module.
npm WARN package.json http#0.0.0 No description
npm WARN package.json http#0.0.0 No repository field.
npm WARN package.json http#0.0.0 No README data
npm WARN package.json querystring#0.2.0 querystring is also the name of a node core module.
These are things that can be done to fix
Uninstall fs & reinstall fs
npm cache clean
Delete node_modules folder and rerun npm install

npm list not returning package paths

npm has started to seriously under perform recently, I have attempted to re install ghost a number of times but since installing it to its current location npm cant find its path.
I enter the below from /home/usr
$ npm list ghost --parseable
$ npm list express --parseable
$
and again in /node_modules I then get the below.
pi#raspberrypi://home/pi/node_modules$ npm list ghost --parseable
npm WARN package.json has-binary-data#0.1.1 No repository field.
npm WARN package.json socket.io-adapter#0.2.0 No repository field.
npm WARN package.json debug#0.6.0 No repository field.
npm WARN package.json bind#0.0.1 No repository field.
npm WARN package.json emitter#1.0.1 No repository field.
npm WARN package.json indexof#0.0.1 No repository field.
npm WARN package.json object-component#0.0.3 No repository field.
npm WARN package.json parseuri#0.0.2 No repository field.
npm WARN package.json parsejson#0.0.1 No repository field.
npm WARN package.json parseqs#0.0.2 No repository field.
npm WARN package.json better-assert#1.0.0 No repository field.
npm WARN package.json callsite#1.0.0 No repository field.
Am I right in thinking npm has lost the path to the above package.json files?

Error in configuring/installation of nodemon

I'm new to nodejs, I am having difficulties in setting up nodemon. I tried to install nodemon using the below command
npm install -g nodemon
But I get the below error,
npm WARN package.json methods#0.0.1 No repository field.
npm WARN package.json bytes#0.2.0 No repository field.
npm WARN package.json pause#0.0.1 No repository field.
npm WARN package.json send#0.1.0 No repository field.
npm WARN package.json range-parser#0.0.4 No repository field.
npm WARN package.json cookie-signature#1.0.1 No repository field.
npm WARN package.json fresh#0.1.0 No repository field.
How to solve this? And How do I configure nodemon to monitor changes to my files?
The messages you're getting are just warnings emitted by npm to warn that the installed package.json has no repository specified. This behavior of npm is quite new. See this github issue.
The good news is, you have nodemon installed successfully and you do not need to configure it but start it with some command line options. See the nodemon page for more information.
A simple usage example is
nodemon --watch routes app.js
Which starts app.js and watches the routes directory for changes.

Resources