node.js - npm unable to install dependencies -
I am trying to install some NPM modules and do not try to install the dependency of the installed module , Npm shows this log:
$ sudo npm install -g npm ERR! AddLocal could not be installed NPM ERR! Error: ENOENT, open 'package.json' NMP ERR! If you need help, you can report this * full * log, NPM ERR! NPM and Node versions, including: NPM ERR! & Lt; Http: //github.com/npm/npm/issues> NPM ERR! System Darwin 13.2.0 NMP ERR! Command "node" "/ usr / local / bin / npm" "install" "-g" npm ERR! CWD / user / roemerbakker NPM ERR! Node-v v0.10.26 nmp err! NPM-V 1.4.21 NMP ERR! Path Package Jason NPM ERR! Code ENOENT NPM ERR! Wrong 34 NMR ERR! NPM ERR! Additional logging details can be found in the following: NPM ERR! /Users /roemerbakker/npm-debug.log NMP ERR! The code is not correct 0 $ The command is tried without it but it also does not work.
There is no need for this when you npm install & lt; Package Name & gt; When you install an NPM package (globally or locally), then it already establishes all its dependencies automatically. You only install NPM command when you install an application code dependency to check an application with a package.json -file Are there.
Comments
Post a Comment