Closed SiJinmin closed 5 years ago
fixed by the following steps:
install tools required $ sudo apt install g++ build-essential git mongodb curl python-minimal capnproto libcapnp-dev
install nvm $ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash then close the teminal and reopen it to enable nvm command
install node $ nvm install 8.11.4 $ node -v it should output "v8.11.4"
install meteor $ curl https://install.meteor.com/ | sh
get rocket.chat code $ git clone https://github.com/RocketChat/Rocket.Chat.git
install modules $ cd Rocket.Chat $ meteor npm install
do post install work $ meteor npm run postinstall $ meteor npm install sharp chai webpack postcss postcss-syntax postcss-load-config fibers capnp
start rocket.chat $ meteor npm start
Description:
when i run "meteor npm start" , i got an error, here is the output:
Steps to reproduce:
install tools required $ sudo apt install g++ build-essential git mongodb curl python-minimal capnproto libcapnp-dev
install nvm $ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash then close the teminal and reopen it to enable nvm command
install node $ nvm install 8.11.4 $ node -v it should output "v8.11.4"
install meteor $ curl https://install.meteor.com/ | sh
get rocket.chat code $ git clone https://github.com/RocketChat/Rocket.Chat.git
install modules $ cd Rocket.Chat $ meteor npm install
do post install work $ meteor npm run postinstall $ meteor npm install sharp chai webpack postcss postcss-syntax postcss-load-config fibers capnp bcrypt graphql-tag graphql-tools reflect-metadata @graphql-modules/core @accounts/server @accounts/password @accounts/types @accounts/common $ meteor npm audit fix
start rocket.chat $ meteor npm start
Expected behavior:
start rocket.chat normally
Actual behavior:
got error and stopped
Server Setup Information:
Relevant logs:
jianyin@jianyinubt:~/Documents/Rocket.Chat$ meteor npm audit fix npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVersion@0. I'll try to do my best with it! npm WARN @accounts/mongo@0.0.12 requires a peer of @accounts/common@^0.0.10 but none is installed. You must install peer dependencies yourself. npm WARN @accounts/mongo@0.0.12 requires a peer of @accounts/server@^0.0.10 but none is installed. You must install peer dependencies yourself. npm WARN @accounts/password@0.13.0 requires a peer of @accounts/server@^0.7.0 but none is installed. You must install peer dependencies yourself. npm WARN graphql-toolkit@0.2.6 requires a peer of graphql-tools@4.0.4 but none is installed. You must install peer dependencies yourself. npm WARN @accounts/graphql-api@0.13.0 requires a peer of @accounts/password@^0.9.3 but none is installed. You must install peer dependencies yourself. npm WARN @accounts/graphql-api@0.13.0 requires a peer of @accounts/server@^0.9.3 but none is installed. You must install peer dependencies yourself. npm WARN @accounts/graphql-api@0.13.0 requires a peer of @accounts/types@^0.9.3 but none is installed. You must install peer dependencies yourself. npm WARN @accounts/graphql-api@0.13.0 requires a peer of @graphql-modules/core@0.4.2 but none is installed. You must install peer dependencies yourself. npm WARN @accounts/graphql-api@0.13.0 requires a peer of graphql-tools@^4.0.3 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm audit fix --force
to install breaking changes; or refer tonpm audit
for steps to fix these manually)