Expected: I can create a block (in a local install, in the command line, browse to /wp-content/plugins/ and use "npx create-guten-block any-block"), make edits to block.js, and shut down my computer. When I turn the computer back on a day or two later, go to my project folder in the command line again, and use "npm start" NPM should watch for changes and compile.
Actual Behavior
Actual: After typing "npm start" I get an error:
If I run "npm audit" it shows a high severity vulnerability for node-sass:
Steps to Reproduce
In a local install, in the command line, browse to /wp-content/plugins/ and use "npx create-guten-block any-block", "cd any-block", and "npm start"
Make changes to src/block/block.js
In the command line, "control C"
A day later, in the command line, return to the plugin folder /wp-content/plugins/any-block/ and use "npm start" (For some reason, once you run "npm install" if you stop watching changes and return to watching changes fairly quickly, the error does not occur. It seems to occur when new packages are available.)
I used to have Node and NPM installed globally so I uninstalled them from the global location and am only running from my local plugin folder now. Happy to offer any other details that would help reproduce and diagnose the issue.
node -v: 8.12.0
npm -v: 6.4.1
yarn --version (if you use Yarn): N/A
npm ls cgb-scripts (if you haven’t ejected): I have not ejected. Here is the error I get from the project folder:
Then, specify:
Operating system: Windows 10 (using Git cmd for command line)
Bug Report
Expected Behavior
Expected: I can create a block (in a local install, in the command line, browse to /wp-content/plugins/ and use "npx create-guten-block any-block"), make edits to block.js, and shut down my computer. When I turn the computer back on a day or two later, go to my project folder in the command line again, and use "npm start" NPM should watch for changes and compile.
Actual Behavior
Actual: After typing "npm start" I get an error:
If I run "npm audit" it shows a high severity vulnerability for node-sass:
Steps to Reproduce
In a local install, in the command line, browse to /wp-content/plugins/ and use "npx create-guten-block any-block", "cd any-block", and "npm start"
Make changes to src/block/block.js
In the command line, "control C"
A day later, in the command line, return to the plugin folder /wp-content/plugins/any-block/ and use "npm start" (For some reason, once you run "npm install" if you stop watching changes and return to watching changes fairly quickly, the error does not occur. It seems to occur when new packages are available.)
I used to have Node and NPM installed globally so I uninstalled them from the global location and am only running from my local plugin folder now. Happy to offer any other details that would help reproduce and diagnose the issue.
node -v
: 8.12.0npm -v
: 6.4.1yarn --version
(if you use Yarn): N/Anpm ls cgb-scripts
(if you haven’t ejected): I have not ejected. Here is the error I get from the project folder:Then, specify: