Giter Site home page Giter Site logo

Comments (6)

thejoshwolfe avatar thejoshwolfe commented on June 16, 2024

And here's what I get when I try the dev mode thing in my previously working groovebasin. Looks like this is a problem with using sudo ... -g previously and not anymore.

$ npm test --groovebasin:development_mode true

> [email protected] test /home/josh/dev/groovebasin
> npm install .; ./node_modules/node-dev/node-dev server.js

npm WARN [email protected] dependencies field should be hash of <name>:<version-range> pairs
npm http GET https://registry.npmjs.org/node-dev
npm http GET https://registry.npmjs.org/socket.io
npm http 200 https://registry.npmjs.org/node-dev
npm http GET https://registry.npmjs.org/node-dev/-/node-dev-0.2.3.tgz
npm http 200 https://registry.npmjs.org/socket.io
npm http 200 https://registry.npmjs.org/node-dev/-/node-dev-0.2.3.tgz
npm WARN prefer global [email protected] should be installed with -g
npm ERR! error installing [email protected]
npm ERR! error rolling back [email protected] Error: EACCES, permission denied '/home/josh/dev/groovebasin/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build/.wafpickle-7'

npm ERR! Error: EACCES, permission denied '/home/josh/dev/groovebasin/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build/.wafpickle-7'
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.
npm ERR! 
npm ERR! System Linux 3.0.0-21-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "."
npm ERR! cwd /home/josh/dev/groovebasin
npm ERR! node -v v0.6.8
npm ERR! npm -v 1.1.0-2
npm ERR! path /home/josh/dev/groovebasin/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build/.wafpickle-7
npm ERR! code EACCES
npm ERR! message EACCES, permission denied '/home/josh/dev/groovebasin/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build/.wafpickle-7'
npm ERR! errno {}
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/josh/dev/groovebasin/npm-debug.log
npm not ok
[ERROR] Error
Error: Cannot find module 'socket.io'
    at Function._resolveFilename (module.js:334:11)
    at Function._load (module.js:279:25)
    at Module.require (module.js:357:17)
    at require (module.js:368:17)
    at Object.<anonymous> (/home/josh/dev/groovebasin/server.js:14:14)
    at Object.<anonymous> (/home/josh/dev/groovebasin/server.js:279:4)
    at Module._compile (module.js:432:26)
    at Object..js (module.js:450:10)
    at Object..js (/home/josh/dev/groovebasin/node_modules/node-dev/wrapper.js:120:14)
    at Module.load (module.js:351:31)

from groovebasin.

thejoshwolfe avatar thejoshwolfe commented on June 16, 2024

I've reverted back to 8ef84f2 for now.

from groovebasin.

thejoshwolfe avatar thejoshwolfe commented on June 16, 2024

Just fyi, I'm not updating my groovebasin(s) until I see commits that address this problem. You broke the setup. I can't do anything without it being fixed. I'm not sold on it being any better than the old one, so I'm unmotivated to look into fixing it myself.

from groovebasin.

andrewrk avatar andrewrk commented on June 16, 2024

This is a problem with lingering artifacts of the old build process. When you used sudo npm link you created root-owned ./node_modules/* files. To fix it, sudo rm -rf ./node_modules/

from groovebasin.

thejoshwolfe avatar thejoshwolfe commented on June 16, 2024

don't forget to read the first comment. I tried with a fresh clone of groovebasin. You can see the complete terminal actions (minus the PS1's).

from groovebasin.

andrewrk avatar andrewrk commented on June 16, 2024

it's npm install . not npm install groovebasin:

andy@andyba:~$ cd Downloads/
andy@andyba:~/Downloads$ git clone https://github.com/superjoe30/groovebasin.git groovebasin2
Cloning into 'groovebasin2'...
remote: Counting objects: 2277, done.
remote: Compressing objects: 100% (858/858), done.
remote: Total 2277 (delta 1447), reused 2224 (delta 1394)
Receiving objects: 100% (2277/2277), 864.55 KiB, done.
Resolving deltas: 100% (1447/1447), done.
andy@andyba:~/Downloads$ cd groovebasin2/
andy@andyba:~/Downloads/groovebasin2$ npm install groovebasin
npm WARN install Refusing to install groovebasin as a dependency of itself
andy@andyba:~/Downloads/groovebasin2$ npm install .
npm http GET https://registry.npmjs.org/node-static
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/handlebars
npm http GET https://registry.npmjs.org/lastfm
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/socket.io
npm http GET https://registry.npmjs.org/formidable
npm http GET https://registry.npmjs.org/node.extend
npm http GET https://registry.npmjs.org/stylus
npm http GET https://registry.npmjs.org/zipstream
npm http GET https://registry.npmjs.org/node-dev
npm http 304 https://registry.npmjs.org/node-static
npm http 200 https://registry.npmjs.org/handlebars
npm http 200 https://registry.npmjs.org/coffee-script
npm http 200 https://registry.npmjs.org/mkdirp
npm http 200 https://registry.npmjs.org/node.extend
npm http 200 https://registry.npmjs.org/socket.io
npm http 200 https://registry.npmjs.org/formidable
npm http 200 https://registry.npmjs.org/lastfm
npm http 304 https://registry.npmjs.org/node-dev
npm http 200 https://registry.npmjs.org/zipstream
npm http 200 https://registry.npmjs.org/stylus
npm WARN prefer global [email protected] should be installed with -g
npm http GET https://registry.npmjs.org/uglify-js
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/socket.io-client/0.8.7
npm http GET https://registry.npmjs.org/policyfile/0.0.4
npm http GET https://registry.npmjs.org/redis/0.6.7
npm http GET https://registry.npmjs.org/cssom/0.2.2
npm http GET https://registry.npmjs.org/growl
npm http GET https://registry.npmjs.org/debug
npm http 200 https://registry.npmjs.org/socket.io-client/0.8.7
npm http GET https://registry.npmjs.org/socket.io-client/-/socket.io-client-0.8.7.tgz
npm http 200 https://registry.npmjs.org/policyfile/0.0.4
npm http GET https://registry.npmjs.org/policyfile/-/policyfile-0.0.4.tgz
npm http 200 https://registry.npmjs.org/uglify-js
npm http 200 https://registry.npmjs.org/cssom/0.2.2
npm http GET https://registry.npmjs.org/cssom/-/cssom-0.2.2.tgz
npm http 200 https://registry.npmjs.org/optimist
npm http 200 https://registry.npmjs.org/redis/0.6.7
npm http GET https://registry.npmjs.org/redis/-/redis-0.6.7.tgz
npm http 200 https://registry.npmjs.org/underscore
npm http 200 https://registry.npmjs.org/policyfile/-/policyfile-0.0.4.tgz
npm http 200 https://registry.npmjs.org/socket.io-client/-/socket.io-client-0.8.7.tgz
npm http 200 https://registry.npmjs.org/debug
npm http 200 https://registry.npmjs.org/growl
npm http 200 https://registry.npmjs.org/cssom/-/cssom-0.2.2.tgz
npm http 200 https://registry.npmjs.org/redis/-/redis-0.6.7.tgz
npm http GET https://registry.npmjs.org/wordwrap
npm http 200 https://registry.npmjs.org/wordwrap
npm WARN excluding symbolic link lib/socket.io-client.js -> io.js
npm http GET https://registry.npmjs.org/uglify-js/1.0.6
npm http GET https://registry.npmjs.org/websocket-client/1.0.0
npm http GET https://registry.npmjs.org/xmlhttprequest/1.2.2
npm http 200 https://registry.npmjs.org/uglify-js/1.0.6
npm http GET https://registry.npmjs.org/uglify-js/-/uglify-js-1.0.6.tgz
npm http 200 https://registry.npmjs.org/xmlhttprequest/1.2.2
npm http GET https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.2.2.tgz
npm http 200 https://registry.npmjs.org/websocket-client/1.0.0
npm http GET https://registry.npmjs.org/websocket-client/-/websocket-client-1.0.0.tgz
npm http 200 https://registry.npmjs.org/uglify-js/-/uglify-js-1.0.6.tgz
npm http 200 https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.2.2.tgz
npm http 200 https://registry.npmjs.org/websocket-client/-/websocket-client-1.0.0.tgz

> [email protected] install /home/andy/Downloads/groovebasin2
> cake build

mkdir -p ./lib
./node_modules/coffee-script/bin/coffee -cbj ./lib/server.js ./src/server/server.coffee
ln -sf ./lib/server.js server.js
./node_modules/handlebars/bin/handlebars ./src/client/views/library.handlebars ./src/client/views/chat_list.handlebars ./src/client/views/settings.handlebars ./src/client/views/playlist.handlebars ./src/client/views/albums.handlebars ./src/client/views/chat_user_list.handlebars ./src/client/views/library_menu.handlebars ./src/client/views/shortcuts.handlebars ./src/client/views/playlist_menu.handlebars >public/app.js.tmp
for f in src/client/util.coffee src/shared/mpd.coffee src/client/socketmpd.coffee src/client/app.coffee; do ./node_modules/coffee-script/bin/coffee -p -c $f >>public/app.js.tmp; done
mv public/app.js{.tmp,}
./node_modules/stylus/bin/stylus <src/client/app.styl >public/app.css.tmp
mv public/app.css{.tmp,}
mkdir -p ./lib
./node_modules/coffee-script/bin/coffee -cbj ./lib/plugin.js ./src/server/plugin.coffee
mkdir -p ./lib
./node_modules/coffee-script/bin/coffee -cbj ./lib/mpdconf.js ./src/server/mpdconf.coffee
mkdir -p ./lib/plugins
./node_modules/coffee-script/bin/coffee -cbj ./lib/plugins/upload.js ./src/server/plugins/upload.coffee
mkdir -p ./lib/plugins
./node_modules/coffee-script/bin/coffee -cbj ./lib/plugins/chat.js ./src/server/plugins/chat.coffee
mkdir -p ./lib/plugins
./node_modules/coffee-script/bin/coffee -cbj ./lib/plugins/lastfm.js ./src/server/plugins/lastfm.coffee
mkdir -p ./lib/plugins
./node_modules/coffee-script/bin/coffee -cbj ./lib/plugins/dynamicmode.js ./src/server/plugins/dynamicmode.coffee
mkdir -p ./lib/plugins
./node_modules/coffee-script/bin/coffee -cbj ./lib/plugins/download.js ./src/server/plugins/download.coffee
mkdir -p ./lib/plugins
./node_modules/coffee-script/bin/coffee -cbj ./lib/plugins/stream.js ./src/server/plugins/stream.coffee
mkdir -p ./lib
./node_modules/coffee-script/bin/coffee -cbj ./lib/mpd.js ./src/shared/mpd.coffee
[email protected] ./node_modules/node.extend

[email protected] ./node_modules/zipstream

[email protected] ./node_modules/node-static

[email protected] ./node_modules/node-dev

[email protected] ./node_modules/mkdirp

[email protected] ./node_modules/formidable

[email protected] ./node_modules/coffee-script

[email protected] ./node_modules/lastfm
└── [email protected]

[email protected] ./node_modules/stylus
├── [email protected]
├── [email protected]
└── [email protected]

[email protected] ./node_modules/handlebars
├── [email protected] ([email protected])
└── [email protected]

[email protected] ./node_modules/socket.io
├── [email protected]
├── [email protected]
└── [email protected] ([email protected], [email protected], [email protected])

from groovebasin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.