Answer the question
In order to leave comments, you need to log in
Custom software for frontend?
Good afternoon
I liked working with npm gulp bower and recently came to yeoman.
But happiness did not last long (new to this, can everything be solved easier?), But the essence is this.
1 The problem arose when installing the browser-sync plugin - stubbornly swears that node-gyp does not fit or cannot find it. I tried to solve the problem described with the visual community - the result has not changed (I have wine 10). True, everything works, but it is very terribly embarrassing that there is this error that hurts the eye.
2. Having spit on everything, I decided to demolish all node python bower and npm modules. I installed the latest node.js, then I installed python 2.7.10 - I started installing modules and on you, npm is not suitable for yeoman, I had to update it. The problem was not solved by the standard npm install -g npm method, but I found a feature from MS to update npm. The result is version 3.* . As a result, now all plugins are loaded for half a day. It feels like they are not cached (not bover not npm) i.e. I can't deploy 1 project first (20 minutes) and immediately 2 with similar plugins (instantly). The second time you have to wait a very long time. In other words, it no longer makes the job easier, but rather complicates it.
So I wanted to ask how to start from scratch. What order is desirable when installing
1. npm (node.js)
2. python
3. gulp
4. bower
5. yeoman
How to solve the problem with node-gyp with its rebuild and browser-sync plugin
PS share your experience, how you are going to fight with long loading problems - if you need to duplicate the project urgently.
PPS Actually, an error when installing browser-sync that I can not overcome:
npm install browser-sync --save
npm WARN install Couldn't install optional dependency: Unsupported
> [email protected] install h:\work\projects\nameProject\node_modules\bufferutil
> node-gyp rebuild
h:\work\projects\nameProject\node_modules\bufferutil>if not defined npm_config_node_gyp (node "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
Сборка проектов в этом решении по одному. Чтобы включить параллельную сборку, добавьте параметр "/m".
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not fi
nd WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid versio
n number. [h:\work\projects\nameProject\node_modules\bufferutil\build\bufferutil.vcxproj]
TRACKER : error TRK0005: не удалось обнаружить "CL.exe". Не удается найти указанный файл. [h:\work\projects\e-xat\webEx
at\node_modules\bufferutil\build\bufferutil.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.10240
gyp ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd h:\work\projects\nameProject\node_modules\bufferutil
gyp ERR! node -v v4.2.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN install:[email protected] [email protected] install: `node-gyp rebuild`
npm WARN install:[email protected] Exit status 1
> [email protected] install h:\work\projects\nameProject\node_modules\utf-8-validate
> node-gyp rebuild
h:\work\projects\nameProject\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
Answer the question
In order to leave comments, you need to log in
Something still went wrong with you. I do not observe the problems you described, although by the will of an evil fate I am now working under Windows.
Try to put browser-sync like this: npm install browser-sync --no-optional
I noticed that browser-sync is unstable, how much I use Gulp, there are always some dependency-related bugs with it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question