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

Update package.json: modify postinstall script #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update package.json: modify postinstall script #31

wants to merge 1 commit into from

Conversation

sudodoki
Copy link

This will fix issue for windows paths. Node-scripts are adding ./node_modules/.bin to the path by default.

This will fix issue for windows paths. Node-scripts are adding ./node_modules/.bin to the path by default.
@sudodoki sudodoki changed the title Update package.json Update package.json: modify postinstall script Jun 18, 2014
@@ -6,7 +6,7 @@
"url": "https://github.com/matsko/YOM-AngularJS-Testing-Article"
},
"scripts": {
"postinstall": "./node_modules/.bin/bower install"
"postinstall": "bower install"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change results in the following messages "bower install" not found exit status 127

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's your version of npm (npm -v)? Try updating npm (npm install -g npm), because npm by defaults adds ./node_modules/.bin folder to $PATH, so npm-scripts can use executables without this dance, which comes out to not work on windows (wrong separator).

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am js noob so bare with me if i say something completely idiotic, npm -v returned 1.4.14, npm was installed with the nodejs package, which i installed from this repo ppa:chris-lea/node.js. And by the way i am using a vagrant box for my dev environnement, pretty this might have an influence.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version looks good. But this worked for me previously. Will check
everything again as soon as I get to my machine.

Sorry for tyops, I'm doing this via phone.
18.07.2014 10:13 пользователь "ExuperO" [email protected] написал:

In package.json:

@@ -6,7 +6,7 @@
"url": "https://github.com/matsko/YOM-AngularJS-Testing-Article"
},
"scripts": {

  • "postinstall": "./node_modules/.bin/bower install"
  • "postinstall": "bower install"

I am js noob so bare with me if i say something completely idiotic, npm -v
returned 1.4.14, npm was installed with nodejs packaged, which i installed
from this repo ppa:chris-lea/node.js.


Reply to this email directly or view it on GitHub
https://github.com/yearofmoo-articles/AngularJS-Testing-Article/pull/31/files#r15098940
.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the help

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, today I'm getting an issue with bootstrap.css not found. 😢

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, actually, that was an issue with my bower using the different registry. But still, my bower installed 1.2.8 fails with 'Arguments to path.join must be strings', which means bower version in package.json should be bumped (known issue that came up last week, I believe). See bower/bower#1404.

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

Successfully merging this pull request may close these issues.

1 participant