I am trying to understand what is happening after I run bundle && npm install. The bundle updates: ‘17 gemfiles dependencies and 69 gems are now installed’ . Then I see
/Users/kevinturney/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/yarn-0.1.1/lib/yarn/server.rb:14:in `<class:Server>': uninitialized constant Socket::SOL_TCP (NameError) from /Users/kevinturney/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/yarn-0.1.1/lib/yarn/server.rb:6:in `<module:Yarn>' from /Users/kevinturney/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/yarn-0.1.1/lib/yarn/server.rb:4:in `<top (required)>' from /Users/kevinturney/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/yarn-0.1.1/bin/yarn:26:in `<top (required)>' from /Users/kevinturney/.rbenv/versions/2.2.3/bin/yarn:23:in `load' from /Users/kevinturney/.rbenv/versions/2.2.3/bin/yarn:23:in `<main>'
and then several red npm ERR! 's
npm ERR! Failed at the firstname.lastname@example.org postinstall script ‘cd client && yarn install’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the react-webpack-rails-tutorial package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cd client && yarn install
What does this NameError mean? I get the same when I start over and run bundle && yarn install too. Subsequently, as I continue with __foreman start -f Procfile.dev__ the server starts and then stops immediately with the following:
22:47:38 web.1 | started with pid 84293
22:47:38 client.1 | started with pid 84294
22:47:38 client.1 | rm: app/assets/webpack/*: No such file or directory
22:47:38 client.1 | /Users/kevinturney/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/yarn-0.1.1/lib/yarn/server.rb:14:in
<class:Server>': uninitialized constant Socket::SOL_TCP (NameError) 22:47:38 client.1 | from /Users/kevinturney/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/yarn-0.1.1/lib/yarn/server.rb:6:inmodule:Yarn’
22:47:38 client.1 | from /Users/kevinturney/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/yarn-0.1.1/lib/yarn/server.rb:4:in
<top (required)>' 22:47:38 client.1 | from /Users/kevinturney/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/yarn-0.1.1/bin/yarn:26:in<top (required)>’
22:47:38 client.1 | from /Users/kevinturney/.rbenv/versions/2.2.3/bin/yarn:23:in
load' 22:47:38 client.1 | from /Users/kevinturney/.rbenv/versions/2.2.3/bin/yarn:23:in’
22:47:38 client.1 | exited with code 1
22:47:38 system | sending SIGTERM to all processes
22:47:38 web.1 | terminated by SIGTERM ````
Finally, the debug log looks as such:
npm ERR! Darwin 15.6.0
npm ERR! argv “/Users/kevinturney/.nvm/versions/node/v7.1.0/bin/node” “/Users/kevinturney/.nvm/versions/node/v7.1.0/bin/npm” “bugs” “react-webpack-rails-tutorial”
npm ERR! node v7.1.0
npm ERR! npm v4.0.2
npm ERR! code E404
npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/react-webpack-rails-tutorial
npm ERR! 404
npm ERR! 404 ‘react-webpack-rails-tutorial’ is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/kevinturney/react-and-rails/app3/npm-debug.log
It seems that my webpack file is not appearing in app/assets path.
rm: app/assets/webpack/*: No such file or directory
What can i do?