Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

npm run watch fails #460

Closed
jochienabuurs opened this issue Sep 9, 2015 · 7 comments
Closed

npm run watch fails #460

jochienabuurs opened this issue Sep 9, 2015 · 7 comments

Comments

@jochienabuurs
Copy link

screen shot 2015-09-09 at 21 09 30

Here is the npm log contents:

0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'run', 'watch' ]
2 info using [email protected]
3 info using [email protected]
4 verbose node symlink /usr/local/bin/node
5 verbose run-script [ 'prewatch', 'watch', 'postwatch' ]
6 info prewatch [email protected]
7 info watch [email protected]
8 verbose unsafe-perm in lifecycle true
9 info [email protected] Failed to exec watch script
10 verbose stack Error: [email protected] watch: `grunt watch`
10 verbose stack Exit status 1
10 verbose stack     at EventEmitter.<anonymous>         (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:214:16)
10 verbose stack     at EventEmitter.emit (events.js:110:17)
10 verbose stack     at ChildProcess.<anonymous>     (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
10 verbose stack     at ChildProcess.emit (events.js:110:17)
10 verbose stack     at maybeClose (child_process.js:1015:16)
10 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
11 verbose pkgid [email protected]
12 verbose cwd /Users/jochem/Sites/foodly/wp-content/themes/foodly
13 error Darwin 14.5.0
14 error argv "node" "/usr/local/bin/npm" "run" "watch"
15 error node v0.12.2
16 error npm  v2.14.1
17 error code ELIFECYCLE
18 error [email protected] watch: `grunt watch`
18 error Exit status 1
19 error Failed at the [email protected] watch script 'grunt watch'.
19 error This is most likely a problem with the foundationpress package,
19 error not with npm itself.
19 error Tell the author that this fails on your system:
19 error     grunt watch
19 error You can get their info via:
19 error     npm owner ls foundationpress
19 error There is likely additional logging output above.
20 verbose exit [ 1, true ]

Can you tell me what's wrong. It has worked before...

@olefredrik
Copy link
Owner

Try npm install followed by a npm run watch. Do you still get an error message?

@sean4500
Copy link

sean4500 commented Sep 9, 2015

I'm having the same issue but when I try "npm install" I'm getting the following errors
screen shot 2015-09-09 at 1 23 08 pm

Error log:

0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'install' ]
2 info using [email protected]
3 info using [email protected]
4 verbose node symlink /usr/local/bin/node
5 verbose readDependencies loading dependencies from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/package.json
6 verbose install where, deps [ '/Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia',
6 verbose install [ 'bower',
6 verbose install 'grunt',
6 verbose install 'grunt-cli',
6 verbose install 'grunt-contrib-concat',
6 verbose install 'grunt-contrib-copy',
6 verbose install 'grunt-contrib-uglify',
6 verbose install 'grunt-contrib-watch',
6 verbose install 'grunt-sass',
6 verbose install 'grunt-string-replace',
6 verbose install 'node-sass',
6 verbose install 'time-grunt' ] ]
7 verbose install where, peers [ '/Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia',
7 verbose install [] ]
8 verbose installManyTop reading for lifecycle /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/package.json
9 info preinstall [email protected]
10 verbose installManyTop reading scoped package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/bower/package.json
11 verbose installManyTop reading scoped package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/grunt/package.json
12 verbose installManyTop reading scoped package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/grunt-cli/package.json
13 verbose installManyTop reading scoped package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/grunt-contrib-concat/package.json
14 verbose installManyTop reading scoped package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/grunt-contrib-copy/package.json
15 verbose installManyTop reading scoped package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/grunt-contrib-uglify/package.json
16 verbose installManyTop reading scoped package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/grunt-contrib-watch/package.json
17 verbose installManyTop reading scoped package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/grunt-sass/package.json
18 verbose installManyTop reading scoped package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/grunt-string-replace/package.json
19 verbose installManyTop reading scoped package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/node-sass/package.json
20 verbose installManyTop reading scoped package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/scripts/package.json
21 verbose installManyTop reading scoped package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/time-grunt/package.json
22 verbose installManyTop reading scoped package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/update/package.json
23 info package.json [email protected] No license field.
24 info package.json [email protected] No license field.
25 info package.json [email protected] No license field.
26 info package.json [email protected] No license field.
27 info package.json [email protected] No license field.
28 info package.json [email protected] No license field.
29 info package.json [email protected] No license field.
30 info package.json [email protected] No license field.
31 info package.json [email protected] No license field.
32 verbose readDependencies loading dependencies from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/package.json
33 verbose targetResolver reading package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/bower/package.json
34 verbose targetResolver reading package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/grunt/package.json
35 verbose targetResolver reading package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/grunt-cli/package.json
36 verbose targetResolver reading package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/grunt-contrib-concat/package.json
37 verbose targetResolver reading package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/grunt-contrib-copy/package.json
38 verbose targetResolver reading package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/grunt-contrib-uglify/package.json
39 verbose targetResolver reading package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/grunt-contrib-watch/package.json
40 verbose targetResolver reading package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/grunt-sass/package.json
41 verbose targetResolver reading package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/grunt-string-replace/package.json
42 verbose targetResolver reading package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/node-sass/package.json
43 verbose targetResolver reading package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/scripts/package.json
44 verbose targetResolver reading package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/time-grunt/package.json
45 verbose targetResolver reading package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/update/package.json
46 verbose targetResolver reading package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/.bin/bower/package.json
47 verbose targetResolver reading package data from /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/.bin/grunt-string-replace/package.json
48 verbose already installed skipping grunt@~0.4.1 /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia
49 verbose already installed skipping grunt-cli@^0.1.13 /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia
50 verbose already installed skipping grunt-contrib-concat@~0.3.0 /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia
51 verbose already installed skipping grunt-contrib-copy@~0.4.1 /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia
52 verbose already installed skipping grunt-contrib-uglify@~0.2.7 /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia
53 verbose already installed skipping grunt-contrib-watch@~0.5.3 /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia
54 verbose already installed skipping [email protected] /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia
55 verbose already installed skipping grunt-string-replace@~0.2.7 /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia
56 verbose already installed skipping [email protected] /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia
57 verbose already installed skipping time-grunt@^1.1.0 /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia
58 verbose already installed skipping bower@^1.4.1 /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia
59 silly install resolved []
60 info build /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia
61 info linkStuff [email protected]
62 silly linkStuff [email protected] has /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes as its parent node_modules
63 verbose linkBins [email protected]
64 verbose linkMans [email protected]
65 verbose rebuildBundles [email protected]
66 verbose rebuildBundles [ '.bin',
66 verbose rebuildBundles 'bower',
66 verbose rebuildBundles 'grunt',
66 verbose rebuildBundles 'grunt-cli',
66 verbose rebuildBundles 'grunt-contrib-concat',
66 verbose rebuildBundles 'grunt-contrib-copy',
66 verbose rebuildBundles 'grunt-contrib-uglify',
66 verbose rebuildBundles 'grunt-contrib-watch',
66 verbose rebuildBundles 'grunt-sass',
66 verbose rebuildBundles 'grunt-string-replace',
66 verbose rebuildBundles 'node-sass',
66 verbose rebuildBundles 'scripts',
66 verbose rebuildBundles 'time-grunt',
66 verbose rebuildBundles 'update' ]
67 verbose rebuild bundle /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/scripts
68 info build /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/scripts
69 info preinstall [email protected]
70 info linkStuff [email protected]
71 silly linkStuff [email protected] has /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules as its parent node_modules
72 verbose linkBins [email protected]
73 verbose linkMans [email protected]
74 verbose rebuildBundles [email protected]
75 info install [email protected]
76 info postinstall [email protected]
77 verbose rebuild bundle /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/update
78 info build /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules/update
79 info preinstall [email protected]
80 info linkStuff [email protected]
81 silly linkStuff [email protected] has /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia/node_modules as its parent node_modules
82 verbose linkBins [email protected]
83 verbose linkMans [email protected]
84 verbose rebuildBundles [email protected]
83 verbose linkMans [email protected]
84 verbose rebuildBundles [email protected]
85 info install [email protected]
86 info postinstall [email protected]
87 info install [email protected]
88 info postinstall [email protected]
89 verbose unsafe-perm in lifecycle true
90 info [email protected] Failed to exec postinstall script
91 verbose stack Error: [email protected] postinstall: bower install && grunt build
91 verbose stack Exit status 3
91 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:214:16)
91 verbose stack at EventEmitter.emit (events.js:110:17)
91 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
91 verbose stack at ChildProcess.emit (events.js:110:17)
91 verbose stack at maybeClose (child_process.js:1015:16)
91 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
92 verbose pkgid [email protected]
93 verbose cwd /Applications/XAMPP/xamppfiles/htdocs/new-otwm/wp-content/themes/offthewallmedia
94 error Darwin 14.5.0
95 error argv "node" "/usr/local/bin/npm" "install"
96 error node v0.12.7
97 error npm v2.14.2
98 error code ELIFECYCLE
99 error [email protected] postinstall: bower install && grunt build
99 error Exit status 3
100 error Failed at the [email protected] postinstall script 'bower install && grunt build'.
100 error This is most likely a problem with the foundationpress package,
100 error not with npm itself.
100 error Tell the author that this fails on your system:
100 error bower install && grunt build
100 error You can get their info via:
100 error npm owner ls foundationpress
100 error There is likely additional logging output above.
101 verbose exit [ 1, true ]

@jochienabuurs
Copy link
Author

Npm install works without errors but npm run watch fails as I mentioned. Will try to take a look at it tomorrow again...

Verstuurd vanaf mijn iPhone

Op 9 sep. 2015 om 22:01 heeft Ole Fredrik Lie [email protected] het volgende geschreven:

Try npm install followed by a npm run watch. Do you still get an error message?


Reply to this email directly or view it on GitHub.

@olefredrik
Copy link
Owner

Hi @jochienabuurs and @sean4500 ,

I just cloned the FoundationPress repository to a test folder. Both npm install and npm run watch seems to run just fine on my Macbook Pro.

npm-watch

That said, I have not tested compatibility with latest major version of Nodejs which was released a few days ago. Here are the versions I'm on

screen shot 2015-09-10 at 08 39 51

Have you installed or updated Node during the last few days? Can you check what version you're on?

@jochienabuurs
Copy link
Author

[image: Inline afbeelding 1]

Note that I use older versions... updated node and npm...

[image: Inline afbeelding 2]

Still not working... but then i noticed the following message...

[image: Inline afbeelding 1]

Apparently, I had another terminal window open that was already watching
the same directory.
Mental note: check for open terminal windows when encountering an error...

Hi @jochienabuurs https://github.com/jochienabuurs and @sean4500
https://github.com/sean4500 ,

I just cloned the FoundationPress repository to a test folder. Both npm
install and npm run watch seems to run just fine on my Macbook Pro.

[image: npm-watch]
https://cloud.githubusercontent.com/assets/1080017/9781682/609f2852-5797-11e5-8ce5-06292d187fa8.png

That said, I have not tested compatibility with latest major version of
Nodejs which was released a few days ago. Here are the versions I'm on

[image: screen shot 2015-09-10 at 08 39 51]
https://cloud.githubusercontent.com/assets/1080017/9781702/85cfa39a-5797-11e5-83e6-a16469f2e44e.png

Have you installed or updated Node during the last few days? Can you check
what version you're on?


Reply to this email directly or view it on GitHub
#460 (comment)
.

@olefredrik olefredrik removed the bug label Sep 10, 2015
@sean4500
Copy link

I've rolled back to Node v0.12.4 and everything is working fine.

Thanks for the help

@olefredrik
Copy link
Owner

👍

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

No branches or pull requests

3 participants