I have two workspaces. I have run ‘npm install mysql’ in both of them, it works fine in one, but in the other I get the following:
azazael13:~/workspace $ npm install mysql
npm WARN package.json email@example.com No repository field.
npm WARN package.json firstname.lastname@example.org No license field.
npm ERR! not a package /home/ubuntu/workspace/mysql
npm ERR! addLocal Could not install /home/ubuntu/workspace/mysql
npm ERR! Linux 4.2.0-c9
npm ERR! argv “/home/ubuntu/.nvm/versions/node/v4.5.0/bin/node” “/home/ubuntu/.nvm/versions/node/v4.5.0/bin/npm” “install” "mysql"
npm ERR! node v4.5.0
npm ERR! npm v2.15.9
npm ERR! path /tmp/npm-3190-b6dc032e/unpack-dcc6e5359d98/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/tmp/npm-3190-b6dc032e/unpack-dcc6e5359d98/package.json’
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/workspace/npm-debug.log
Any insights to what I am doing wrong on the 2nd workspace?