You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not specifically an issue with a command, but possibly relating to dependency changes in 12.2.0
Is this a regression?
Yes, the previous version in which this bug was not present was: 12.1.0
Description
On Windows, in an Angular 12.2.0 project, 'npm ci' will result in a bunch of gyp errors that somehow relate to 'nice-napi'.
This seems to somehow relate to the introduction of piscina as a dependency in Angular CLI 12.2.0, and the problem may not be with Angular itself, but rather one of it's dependencies.
It may be that there are additional requirements for Angular 12.2 that were not required for Angular 12.1; if so, documentation on this would be useful.
馃敩 Minimal Reproduction
Create a new Angular 12.2.0 project on a Windows PC (using ng new). Run 'npm ci' and see the output.
Note that this doesn't happen with 'npm install'.
馃敟 Exception or Error
npm ci
npm WARN prepare removing existing node_modules/ before installation
> fsevents@1.2.13 install C:\my-app\node_modules\webpack-dev-server\node_modules\fsevents
> node install.js
Skipping 'fsevents' build as platform win32 is not supported
> nice-napi@1.0.2 install C:\my-app\node_modules\nice-napi
> node-gyp-build
C:\my-app\node_modules\nice-napi>if not defined npm_config_node_gyp (node "C:\ProgramData\nvm\v14.17.3\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\ProgramData\nvm\v14.17.3\node_modules\npm\node_modul
es\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! find Python
and a bunch of additional errors relating to the Python search.
After following node-gyp guidelines for Windows installations, the following trace results:
npm ci
npm WARN prepare removing existing node_modules/ before installation
> fsevents@1.2.13 install C:\my-app\node_modules\webpack-dev-server\node_modules\fsevents
> node install.js
Skipping 'fsevents' build as platform win32 is not supported
> nice-napi@1.0.2 install C:\my-app\node_modules\nice-napi
> node-gyp-build
C:\my-app\node_modules\nice-napi>if not defined npm_config_node_gyp (node "C:\ProgramData\nvm\v14.17.3\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\ProgramData\nvm\v14.17.3\node_modules\npm\node_modules\node-gyp\bin\node-gyp.j
s" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
nothing.c
win_delay_load_hook.cc
nothing.vcxproj -> C:\my-app\node_modules\nice-napi\build\Release\\nothing.lib
binding.cc
win_delay_load_hook.cc
C:\my-app\node_modules\nice-napi\binding.cc(2): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [C:\my-app\node_modules\nice-napi\build\nice_napi.vcxproj]
鈫怺37;40mgyp鈫怺0m 鈫怺0m鈫怺31;40mERR!鈫怺0m 鈫怺0m鈫怺35mbuild error鈫怺0m
鈫怺0m鈫怺37;40mgyp鈫怺0m 鈫怺0m鈫怺31;40mERR!鈫怺0m 鈫怺0m鈫怺35mstack鈫怺0m Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
鈫怺0m鈫怺37;40mgyp鈫怺0m 鈫怺0m鈫怺31;40mERR!鈫怺0m 鈫怺0m鈫怺35mstack鈫怺0m at ChildProcess.onExit (C:\ProgramData\nvm\v14.17.3\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
鈫怺0m鈫怺37;40mgyp鈫怺0m 鈫怺0m鈫怺31;40mERR!鈫怺0m 鈫怺0m鈫怺35mstack鈫怺0m at ChildProcess.emit (events.js:375:28)
鈫怺0m鈫怺37;40mgyp鈫怺0m 鈫怺0m鈫怺31;40mERR!鈫怺0m 鈫怺0m鈫怺35mstack鈫怺0m at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
鈫怺0m鈫怺37;40mgyp鈫怺0m 鈫怺0m鈫怺31;40mERR!鈫怺0m 鈫怺0m鈫怺35mSystem鈫怺0m Windows_NT 10.0.19043
鈫怺0m鈫怺37;40mgyp鈫怺0m 鈫怺0m鈫怺31;40mERR!鈫怺0m 鈫怺0m鈫怺35mcommand鈫怺0m "C:\\Program Files\\nodejs\\node.exe" "C:\\ProgramData\\nvm\\v14.17.3\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
鈫怺0m鈫怺37;40mgyp鈫怺0m 鈫怺0m鈫怺31;40mERR!鈫怺0m 鈫怺0m鈫怺35mcwd鈫怺0m C:\my-app\node_modules\nice-napi
鈫怺0m鈫怺37;40mgyp鈫怺0m 鈫怺0m鈫怺31;40mERR!鈫怺0m 鈫怺0m鈫怺35mnode -v鈫怺0m v14.17.3
鈫怺0m鈫怺37;40mgyp鈫怺0m 鈫怺0m鈫怺31;40mERR!鈫怺0m 鈫怺0m鈫怺35mnode-gyp -v鈫怺0m v5.1.0
鈫怺0m鈫怺37;40mgyp鈫怺0m 鈫怺0m鈫怺31;40mERR!鈫怺0m 鈫怺0m鈫怺35mnot ok鈫怺0m
This seems to be trying to do something that isn't applicable to a Windows environment.
The text was updated successfully, but these errors were encountered:
brodziakm
changed the title
Angular CLI 12.2 has gyp errors when running 'npm ci'
Angular CLI 12.2 has gyp errors when running 'npm ci' on Windows
Aug 11, 2021
馃悶 Bug report
Command (mark with an
x
)Not specifically an issue with a command, but possibly relating to dependency changes in 12.2.0
Is this a regression?
Yes, the previous version in which this bug was not present was: 12.1.0
Description
On Windows, in an Angular 12.2.0 project, 'npm ci' will result in a bunch of gyp errors that somehow relate to 'nice-napi'.
This seems to somehow relate to the introduction of piscina as a dependency in Angular CLI 12.2.0, and the problem may not be with Angular itself, but rather one of it's dependencies.
It may be that there are additional requirements for Angular 12.2 that were not required for Angular 12.1; if so, documentation on this would be useful.
馃敩 Minimal Reproduction
Create a new Angular 12.2.0 project on a Windows PC (using ng new). Run 'npm ci' and see the output.
Note that this doesn't happen with 'npm install'.
馃敟 Exception or Error
and a bunch of additional errors relating to the Python search.
After following node-gyp guidelines for Windows installations, the following trace results:
This seems to be trying to do something that isn't applicable to a Windows environment.
馃實 Your Environment
Anything else relevant?
Operating system is Windows 10.
The text was updated successfully, but these errors were encountered: