![]() ![]() When run without arguments, npm install downloads dependencies defined in a package.json file and generates a node_modules folder with the installed modules. Npm install can be run with or without arguments. What gives? I'm on Ubuntu Precise64 in a Vagrant virtual box.Npm install downloads a package and it's dependencies. Throw e // process.nextTick error, or 'error' event on first tickĮrror: Cannot find module 'cheerio-select'Īt Function._resolveFilename (module.js:332:11) For instance, cheerio has a few dependencies, so when I try running my test suite, I'm greeted with: (ssh) /vagrant git:master ❯ mocha -compilers coffee:coffee-script -watch spec/* However, none of the dependencies for any of these packages get installed. Npm info linkStuff info install info postinstall info ok ![]() Npm info using info using info preinstall info build /vagrant if I keep running it it over and over again, it eventually doesn't complain anymore and outputs: (ssh) /vagrant git:master ❯ npm install -d If I rerun npm install -d, the error changes to whatever the next package is. Npm ERR! Additional logging details can be found in: Npm ERR! error rolling back Error: UNKNOWN, unknown error '/vagrant/node_modules/request' Npm ERR! error installing info unbuild /vagrant/node_modules/request Npm ERR! message ENOENT, no such file or directory '/vagrant/node_modules/underscore/package.json' Npm ERR! path /vagrant/node_modules/underscore/package.json Npm ERR! command "node" "/usr/bin/npm" "install" "-d" Npm ERR! reportbug -attach /vagrant/npm-debug.log npm Npm ERR! Error: ENOENT, no such file or directory '/vagrant/node_modules/underscore/package.json' Npm ERR! error rolling back Error: UNKNOWN, unknown error '/vagrant/node_modules/underscore' Npm ERR! error installing info unbuild /vagrant/node_modules/underscore Npm info unbuild /vagrant/node_modules/request Npm info unbuild /vagrant/node_modules/sinon Npm info unbuild /vagrant/node_modules/mocha Npm info into /vagrant info into /vagrant info into /vagrant info into /vagrant info installOne info installOne info installOne info installOne info unbuild /vagrant/node_modules/underscore ![]() Npm info using info using info preinstall http GET Having trouble getting NPM to install dependencies with npm install -d in my project directory with a defined package.json file.Īnd after wiping my project root's node modules folder ( rm -rf node_modules), I run npm install -d in my project root and am greeted with this: (ssh) /vagrant git:master ❯ npm install -d ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |