node.js - npm install errors for errno -2 -
i trying install npm,but shows errors below:
npm err! install couldn't read dependencies npm err! darwin 14.5.0 npm err! argv "/users/bunniehsieh/.nvm/versions/node/v4.1.0/bin/node" "/users/bunniehsieh/.nvm/versions/node/v4.1.0/bin/npm" "install" npm err! node v4.1.0 npm err! npm v2.14.3 npm err! path /users/bunniehsieh/package.json npm err! code enopackagejson npm err! errno -2 npm err! syscall open npm err! package.json enoent: no such file or directory, open '/users/bunniehsieh/package.json' npm err! package.json not problem npm itself. npm err! package.json npm can't find package.json file in current directory. npm err! please include following file support request: npm err! /users/bunniehsieh/npm-debug.log
and have tried uninstall install again,but didn't work,please give me advice or help,thanks!!!!!!
you have nothing install.
npm file named package.json
in current directory. file contain various information on project including dependencies.
need create (npm init
) or import file existing project.
you can specify package install manually giving name npm:
npm install package_name
please have full read of official documentation
Comments
Post a Comment