Comments (13)
Thank you for pointing this out.
Unfortunately there does not seem to be a better work around as of yet.
I will leave this issue open for a while, although hopefully it will be fixed soon
from npm-watch.
Also it should be installed as a global module npm i npm-watch -g
, right?
Or perhaps run locally via npm-run
?
npm i npm-run npm-quick-run -g
from npm-watch.
I usually install locally and then do npm run watch
from npm-watch.
@kristianmandrup would it be possible to check if this issue is still occurring for you?
from npm-watch.
OK, let me try
from npm-watch.
Just installed latest npm-watch
globally via npm i -g npm-watch
Node v. 7.1
$ npm-watch
/usr/local/lib/node_modules/npm-watch/watch-package.js:96
stdin.stderr.write(message)
^
TypeError: Cannot read property 'stderr' of undefined
at die (/usr/local/lib/node_modules/npm-watch/watch-package.js:96:10)
at watchPackage (/usr/local/lib/node_modules/npm-watch/watch-package.js:16:5)
at Object.<anonymous> (/usr/local/lib/node_modules/npm-watch/cli.js:12:15)
from npm-watch.
yeah....
that definitely should not be happening.
Will look at it later in the day.
two things that would help:
- What OS are you on
- What is your conifg
from npm-watch.
I'm on Mac OS Sierra. What config?
from npm-watch.
the watch
key in your project,json
.
are you just using defaults, or changing settings?
from npm-watch.
Oh, I forgot about the watch
key. This time I ran the command from a project root with a standard package.json
. Should have a better error/warning in that case.
from npm-watch.
Very good point. Do you mind opening a new issue to that effect?
from npm-watch.
What's the status of the issue? Does this work in node 7+?
from npm-watch.
Node 7 has been EOL'ed
And it has been working for me with 8+
from npm-watch.
Related Issues (20)
- Not watching *html files with valid template HOT 2
- Hide nodemon logs HOT 4
- Things to look into
- Unrecognized input: rs HOT 1
- High severity vulnerability of dot-prop package HOT 2
- Annoying "npm update check" message HOT 6
- bad documentation HOT 2
- can we watch the file in the monorepo
- Couldn't find a way to run subset of scripts (but still more than one script) HOT 2
- Is there a limit on the number of watched tasks? HOT 1
- How to ignore conflicting extensions? HOT 1
- npm-watch fails with ENOENT, unhandled error event in a hoisted lerna repository HOT 2
- npm-watch does not stop the last server before running the updated one HOT 5
- How can I run npm-watch in development mode? HOT 1
- npm-watch not detecting changes when run on dev mode HOT 1
- Feature: pass multiple scripts on the command line
- Dynamic script execution command
- globalConfig HOT 1
- global config that apply to every npm-watch scripts HOT 1
- Script not rerunning HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npm-watch.