Error: EACCES: permission denied, mkdir '/Desktop'
at Object.fs.mkdirSync (fs.js:885:18)
at Object.wrapper [as mkdir] (/tools/fs/files.js:1564:35)
at Object.files.mkdir_p (/tools/fs/files.js:428:11)
at buildCommand (/tools/cli/commands.js:1026:11)
at Command.func (/tools/cli/commands.js:881:12)
at /tools/cli/main.js:1523:15
➜ bundle MONGO_URL=mongodb://localhost:27017/myapp ROOT_URL=http://localhost:3000 node main.js
Note: you are using a pure-JavaScript implementation of bcrypt.
While this implementation will work correctly, it is known to be
approximately three times slower than the native implementation.
In order to use the native implementation instead, run
meteor npm install --save bcrypt
in the root directory of your application.
It mean that it is optional for cd programs/server && npm install.
what difference for cd programs/server && npm install -> Global or with ... --save -> Local?
module.js:549
throw err;
^
Error: Cannot find module 'fibers'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/theara/Desktop/bundle/programs/server/boot.js:1:75)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
Running cd programs/server && npm install is not optional. As you discovered, it’s required to make sure the native addon for fibers have been built for the deployed architecture and nodejs version.
What I was saying is that having the native version of bcrypt is optional, as the warning in the console says
In your dev environment, do you have bcrypt in your package.json?
It looks like you need to install the native version in your source before building.