수색…
노드 및 NPM 설치
이 빠른 시작은 Mac OSX Mavericks 용으로 작성되었으며 다른 설치 지침보다 약간 자세한 정보입니다. 경로 설정 및 NPM 구성과 같이 설치가 잘못 될 수있는 몇 가지 중요한 경우를 다루어야합니다.
# install node
# as of OSX Mavericks, we need the GUI installer (?!)
# when a good command line alternative is found, we'll post it
http://nodejs.org/download/
# install npm
curl -0 -L https://npmjs.org/install.sh | sh
# check node is installed correctly
node --version
# check npm is installed correctly
npm -version
# find your npm path
which npm
# make sure npm is in your path
sudo nano ~/.profile
export PATH=$PATH:/usr/local/bin
유성 설치 연습
이 빠른 시작은 Mac OSX Mavericks 용으로 작성되었으며 다른 설치 지침보다 약간 자세한 정보입니다. 경로 설정 및 NPM 구성과 같이 설치가 잘못 될 수있는 몇 가지 중요한 경우를 다루어야합니다.
# install meteor
curl https://install.meteor.com | sh
# check it's installed correctly
meteor --version
# install node
# as of OSX Mavericks, we need the GUI installer (?!)
# when a good command line alternative is found, we'll post it
http://nodejs.org/download/
# install npm
curl -0 -L https://npmjs.org/install.sh | sh
# check node is installed correctly
node --version
# check npm is installed correctly
npm -version
# find your npm path
which npm
# make sure npm is in your path
sudo nano ~/.profile
export PATH=$PATH:/usr/local/bin
몽고 설치
Meteor는 고립되어 존재하지 않으며 Mongo, Robomongo, Atom, Linters 등과 같이 개발을위한 추가 도구를 설치하는 것이 일반적입니다.
# make sure mongo is in your local path
nano ~/.profile
export PATH=$PATH:/usr/local/mongodb/bin
# or install it to the global path
nano /etc/paths
/usr/local/mongodb/bin
# create mongo database directory
mkdir /data/
mkdir /data/db
chown -R username:admin /data
# run mongodb server
mongod
ctrl-c
# check that you can connect to your meteor app with stand-alone mongo
terminal-a$ meteor create helloworld
terminal-a$ cd helloworld
terminal-a$ meteor
terminal-b$ mongo -port 3001
# install robomongo database admin tool
http://robomongo.org/
# check you can connect to your mongo instance with robomongo
terminal-a$ meteor create helloworld
terminal-a$ cd helloworld
terminal-a$ meteor
Dock$ Robomongo > Create > localhost:3001
기타 개발 도구
# install node-inspector
terminal-a$ npm install -g node-inspector
# start meteor
terminal-a$ cd helloworld
terminal-a$ NODE_OPTIONS='--debug-brk --debug' mrt run
# alternatively, some people report this syntax being better
terminal-a$ sudo NODE_OPTIONS='--debug' ROOT_URL=http://helloworld.com meteor --port 80
# launch node-inspector along side your running app
terminal-b$ node-inspector
# go to the URL given by node-inspector and check it's running
http://localhost:8080/debug?port=5858
# install jshint
npm install -g jshint
Modified text is an extract of the original Stack Overflow Documentation
아래 라이선스 CC BY-SA 3.0
와 제휴하지 않음 Stack Overflow