I look at the code written by a colleague and she uses the @ symbol in requests. This is the first line of one of these files:
var restServer = require('@company/config')
When I try to run this code, I get an error message:
Error: Cannot find module '@company/config'
I honestly expect nothing like this to be recognized in my catalog! It seems like some kind of magic is happening here that I hate.
All I can guess is that either this is some kind of obscure npm or Node trick that I have not been exposed to, or maybe there is another dark configuration art that I don’t get. Any information appreciated, even if it's just an explanation of how @ works, is required.
Other ideas: the chef is involved somewhere in all of this, so this may be relevant.
Update : 99% are sure that this is a problem with how npm config works, but still not sure how to do it.
Update2 based on some things that I revealed:
Dereks-MacBook-Pro:project-dir derekjanni$ npm config set //registry.npmjs.org/:authtoken $SECRET_TOKEN Dereks-MacBook-Pro:project-dir derekjanni$ npm install npm ERR! Darwin 15.0.0 npm ERR! argv "/usr/local/Cellar/node/5.5.0/bin/node" "/usr/local/bin/npm" "install" npm ERR! node v5.5.0 npm ERR! npm v3.5.3 npm ERR! code E404 npm ERR! 404 Not found : @company/config npm ERR! 404 '@company/config' is not in the npm registry.
Derek Janni Mar 29 '16 at 19:31 2016-03-29 19:31
source share