Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'walk-sync' #1

Closed
jish opened this issue Mar 4, 2015 · 9 comments
Closed

Cannot find module 'walk-sync' #1

jish opened this issue Mar 4, 2015 · 9 comments

Comments

@jish
Copy link
Contributor

jish commented Mar 4, 2015

Following the instructions in the readme:

  • clone
  • npm install
  • bower install
  • ember server

https://github.com/chancancode/hn-reader#installation

I get the following output

edge/hn-reader[master]% ember server
version: 0.1.12
Cannot find module 'walk-sync'
Error: Cannot find module 'walk-sync'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/josh/code/js/edge/hn-reader/lib/fixtures-packer/lib/broccoli-packer.js:3:16)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
@chancancode
Copy link
Owner

I think I did something wrong with the in-repo-add-ons (in lib)! You need to cd into each of them and run npm install in those. @stefanpenner do you know why?

@chancancode
Copy link
Owner

I should probably get rid of them anyway, or extract them into proper add ons

@stefanpenner
Copy link
Contributor

@jish which version of NPM are you on?

likely solution

npm install -g npm #install latest npm
rm -rf node_modules
npm cache clean
npm install

@stefanpenner
Copy link
Contributor

checking out the app now to see

@stefanpenner
Copy link
Contributor

ah, ya in-app addon's package json isn't really supposed to have dependencies, unless you ad a script to handle that,we don't support it out of the box.

@chancancode
Copy link
Owner

@stefanpenner great! so I should move those dependencies to the root package.json, right? (at least until I get rid of those)

Related #6

@stefanpenner
Copy link
Contributor

unsure, but i added this: #4

@chancancode
Copy link
Owner

Cool, @jish, so I think that fixes the problem! Let me (us?) know if it's not the case 😄

@jish
Copy link
Contributor Author

jish commented Mar 4, 2015

$ npm --version
2.1.9
$ npm install -g npm
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
[email protected] /usr/local/lib/node_modules/npm
$ npm --version
2.6.1
$ rm -rf node_modules
$ npm cache clean
$ npm install

Gives the same error

$ cd lib/fixtures-packer
$ npm install
$ cd ../sass-assets
$ npm install
$ cd ../..
$ ember server

Works. Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants