-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors trying to do npm install in sp-dev-fx-webparts\tutorials #63
Comments
Following online advise, I created a C++ project in VS 2015, and apparently that installed CL.exe, because now my error is different:C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials>npm i
C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Users\580616\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (no gyp ERR! build error
C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Users\580616\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else gyp ERR! build error
Cached binary found at C:\Users\580616\AppData\Roaming\npm-cache\node-sass\3.13.0\win32-x64-48_binding.node
PhantomJS not found on PATH
PhantomJS not found on PATH
Binary found at C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials\node_modules\node-sass\vendor\win32-x64-48\binding.node npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials> |
According to your error message you're using Node.js v6. SharePoint Framework currently supports v4. Could you try switching to Node.js v4 and re-running |
Now I have version 4.5, but the TRACKER error (TRK0002) is still the same. C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials>npm i
C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Users\580616\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (no gyp ERR! build error
C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Users\580616\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else gyp ERR! build error C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials> |
Have you tried deleting the |
When I try to reinstall windows-build-tools I get this error: C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials>npm install --global --production windows-build-tools
Downloading BuildTools_Full.exe
npm ERR! windows-build-tools@0.6.1 postinstall: npm ERR! Please include the following file with any support request: C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials> |
From your error:
Could you try re-running the command as admin? |
Thanks! I succeeded with the windows-build-tools, but I am still getting the TRK0002 error when I try npm i. Many thanks for you time & patience!!! C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials>npm i
C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Users\580616\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) el gyp ERR! build error
C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Users\580616\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) gyp ERR! build error C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials> |
Thank you for reporting an issue or suggesting an enhancement. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you.
Category
Expected or Desired Behavior
I just expect an error free install
Observed Behavior
I will paste the errors at the bottom
Steps to Reproduce
I downloaded and unzipped sp-dev-fx and then tried to install the tutorials
Thanx!!!
Here are the error messages:
C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Users\580616\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build,please add the "/m" switch.
TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials\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: 1gyp ERR! stack at ChildProcess.onExit (C:\Users\580616\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\580616\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials\node_modules\bufferutil
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Users\580616\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build,please add the "/m" switch.
TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials\node_modules\utf-8-validate\build\validation.vcxproj]
gyp ERR! build error
gyp ERR! stack Error:
C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
failed with exit code: 1gyp ERR! stack at ChildProcess.onExit (C:\Users\580616\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\580616\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\580616\Documents\sp-dev-fx-webparts\tutorials\node_modules\utf-8-validate
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN cldrjs@0.4.4 requires a peer of cldr-data@>=25 but none was installed.
npm WARN globalize@1.1.1 requires a peer of cldr-data@>=25 but none was installed.
npm WARN globalize-compiler@0.2.0 requires a peer of cldr-data@>=25 but none was installed.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.2.1 (node_modules\bufferutil):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.2.1 install:
node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.2.1 (node_modules\utf-8-validate):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.2.1 install:
node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
The text was updated successfully, but these errors were encountered: