The Hitchhiker's Guide to Installing Frappé on Linux Failed:

I am following “The Hitchhiker’s Guide to Installing Frappé on Linux”

All steps worked fine until I ran the following command.
bench init --frappe-branch master frappe-bench

I have following versions:
Node: v11.12.0
NPM: 6.9.0

After the repo is cloned I get the following error. What is causing this issue and how it can be resolved?

npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm ERR! prepareGitDep 1> 
npm ERR! prepareGitDep > uws@9.14.0 install /home/khurramshahzadd/.npm/_cacache/tmp/git-clone-b74303ef/node_modules/uws
npm ERR! prepareGitDep > node-gyp rebuild > build_log.txt 2>&1 || exit 0
npm ERR! prepareGitDep 
npm ERR! prepareGitDep 
npm ERR! prepareGitDep > wd@1.11.1 install /home/khurramshahzadd/.npm/_cacache/tmp/git-clone-b74303ef/node_modules/wd
npm ERR! prepareGitDep > node scripts/build-browser-scripts
npm ERR! prepareGitDep 
npm ERR! prepareGitDep 
npm ERR! prepareGitDep > sauce-connect-launcher@1.2.4 postinstall /home/khurramshahzadd/.npm/_cacache/tmp/git-clone-b74303ef/node_modules/sauce-connect-launcher
npm ERR! prepareGitDep > node scripts/install.js || nodejs scripts/install.js
npm ERR! prepareGitDep 
npm ERR! prepareGitDep 
npm ERR! prepareGitDep > parchment@2.0.0-dev prepare /home/khurramshahzadd/.npm/_cacache/tmp/git-clone-b74303ef
npm ERR! prepareGitDep > npm run build
npm ERR! prepareGitDep 
npm ERR! prepareGitDep 
npm ERR! prepareGitDep > parchment@2.0.0-dev build /home/khurramshahzadd/.npm/_cacache/tmp/git-clone-b74303ef
npm ERR! prepareGitDep > webpack --config webpack.conf.js
npm ERR! prepareGitDep 
npm ERR! prepareGitDep 
npm ERR! prepareGitDep 2> npm WARN install Usage of the `--dev` option is deprecated. Use `--only=dev` instead.
npm ERR! prepareGitDep npm WARN deprecated istanbul@0.4.5: This module is no longer maintained, try this instead:
npm ERR! prepareGitDep npm WARN deprecated   npm i nyc
npm ERR! prepareGitDep npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives.
npm ERR! prepareGitDep npm WARN deprecated circular-json@0.5.9: CircularJSON is in maintenance only, flatted is its successor.
npm ERR! prepareGitDep npm WARN deprecated nodemailer@2.7.2: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm ERR! prepareGitDep npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
npm ERR! prepareGitDep npm WARN deprecated babel-preset-es2015@6.24.1: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update! 
npm ERR! prepareGitDep npm WARN deprecated mailcomposer@4.0.1: This project is unmaintained
npm ERR! prepareGitDep npm WARN deprecated socks@1.1.9: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
npm ERR! prepareGitDep npm WARN deprecated uws@9.14.0: New code is available at github.com/uNetworking/uWebSockets.js
npm ERR! prepareGitDep npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm ERR! prepareGitDep npm WARN deprecated buildmail@4.0.1: This project is unmaintained
npm ERR! prepareGitDep npm WARN deprecated boom@2.10.1: This version is no longer maintained. Please upgrade to the latest version.
npm ERR! prepareGitDep npm WARN deprecated cryptiles@2.0.5: This version is no longer maintained. Please upgrade to the latest version.
npm ERR! prepareGitDep npm WARN deprecated hoek@2.16.3: This version is no longer maintained. Please upgrade to the latest version.
npm ERR! prepareGitDep /home/khurramshahzadd/.npm/_cacache/tmp/git-clone-b74303ef/node_modules/webpack-cli/bin/config-yargs.js:89
npm ERR! prepareGitDep 				describe: optionsSchema.definitions.output.properties.path.description,
npm ERR! prepareGitDep 				                                           ^
npm ERR! prepareGitDep 
npm ERR! prepareGitDep TypeError: Cannot read property 'properties' of undefined
npm ERR! prepareGitDep     at module.exports (/home/khurramshahzadd/.npm/_cacache/tmp/git-clone-b74303ef/node_modules/webpack-cli/bin/config-yargs.js:89:48)
npm ERR! prepareGitDep     at /home/khurramshahzadd/.npm/_cacache/tmp/git-clone-b74303ef/node_modules/webpack-cli/bin/webpack.js:60:27
npm ERR! prepareGitDep     at Object.<anonymous> (/home/khurramshahzadd/.npm/_cacache/tmp/git-clone-b74303ef/node_modules/webpack-cli/bin/webpack.js:515:3)
npm ERR! prepareGitDep     at Module._compile (internal/modules/cjs/loader.js:799:30)
npm ERR! prepareGitDep     at Object.Module._extensions..js (internal/modules/cjs/loader.js:810:10)
npm ERR! prepareGitDep     at Module.load (internal/modules/cjs/loader.js:666:32)
npm ERR! prepareGitDep     at tryModuleLoad (internal/modules/cjs/loader.js:606:12)
npm ERR! prepareGitDep     at Function.Module._load (internal/modules/cjs/loader.js:598:3)
npm ERR! prepareGitDep     at Module.require (internal/modules/cjs/loader.js:705:19)
npm ERR! prepareGitDep     at require (internal/modules/cjs/helpers.js:14:16)
npm ERR! prepareGitDep npm ERR! code ELIFECYCLE
npm ERR! prepareGitDep npm ERR! errno 1
npm ERR! prepareGitDep npm ERR! parchment@2.0.0-dev build: `webpack --config webpack.conf.js`
npm ERR! prepareGitDep npm ERR! Exit status 1
npm ERR! prepareGitDep npm ERR! 
npm ERR! prepareGitDep npm ERR! Failed at the parchment@2.0.0-dev build script.
npm ERR! prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! prepareGitDep 
npm ERR! prepareGitDep npm ERR! A complete log of this run can be found in:
npm ERR! prepareGitDep npm ERR!     /home/khurramshahzadd/.npm/_logs/2019-03-19T05_39_30_914Z-debug.log
npm ERR! prepareGitDep npm ERR! code ELIFECYCLE
npm ERR! prepareGitDep npm ERR! errno 1
npm ERR! prepareGitDep npm ERR! parchment@2.0.0-dev prepare: `npm run build`
npm ERR! prepareGitDep npm ERR! Exit status 1
npm ERR! prepareGitDep npm ERR! 
npm ERR! prepareGitDep npm ERR! Failed at the parchment@2.0.0-dev prepare script.
npm ERR! prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! prepareGitDep 
npm ERR! prepareGitDep npm ERR! A complete log of this run can be found in:
npm ERR! prepareGitDep npm ERR!     /home/khurramshahzadd/.npm/_logs/2019-03-19T05_39_31_121Z-debug.log
npm ERR! prepareGitDep 
npm ERR! premature close

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/khurramshahzadd/.npm/_logs/2019-03-19T05_39_31_341Z-debug.log

I’d really recommend using yarn personally, It worked ok for me, when using it.

1 Like

Great. Yarn did the trick but now I am trapped into another problem .

Now when I start the bench it says.
[ERROR] Procfile does not exist or is not a file

Yarn did installed the dependencies but how do I get Procfile?
I only have the following files and directories in my frappe-bench directory.

apps
config
env
logs
node_modules
package.json
sites
yarn.lock

bench setup Procfile

Thank you @root13F

I did tried that but that was also throwing some weird errors.

I reinstalled the bench, changed my node version
Node: v11.12.0 to v8.15.1
NPM: 6.9.0 to 6.4.1

and then tried bench init again, that solved my issued.

1 Like