npm 3.5.2 nuget package fails to install in VS2013 - npm

I am unable to install nuget package NPM 3.5.2 in visual studio 2013. It fails with error - Could not find a part of the path
Attempting to resolve dependency 'Node.js (≥ 0.12.7)'.
Attempting to resolve dependency 'NoGit (≥ 0.1.0)'.
Installing 'Npm 3.5.2'.
Install failed. Rolling back...
Could not find a part of the path 'C:\Users\xxxxx\AppData\Local\Temp\NuGetScratch\92236435-c19e-4785-96ed-e1434682490e\stzkys2q.h4q\node_modules\npm\node_modules\fstream-npm\node_modules\fstream-ignore\node_modules\minimatch\node_modules\brace-expansion\node_modules\balanced-match\.npmignore'.

I think you're bumping into the windows maximum path length which is 260 chars:
This explains:
Why does the 260 character path length limit exist in Windows?

Related

How do I check that my npm package is installable on all the Node versions and platforms I want to support?

I publish an npm package that uses C++ code using nan. How can I double check that my package can be installed/imported on Linux, macOS and Windows with Node 14+ after I run npm publish?

Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (93)

this what VSC terminal show me
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (93)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.14.1
i tried some solutions in stack overflow:
npm rebuild node-sass
and
npm uninstall node-sass && npm install node-sass
but does't work with , i saw some people talk about node version if support sass or not,
im using v16.14.0 it's LTS version should that support i guess,
i hope someone can help and THANK YOU
It's almost like it's trying to install the 4.x branch which only supports up to Node 14.
Try installing the 7.0.1 (current latest).
npm i node-sass#7.0.1
I'd recommend going ahead and wiping node_modules prior to installing just to be safe.
If that doesn't work, can you please post the entire output in the comment?
Fix the errors due to node-sass:
1. Remove "sass" and "sass-loader" from package.json
2. rm -rf node_modules
3. npm install
4. npm install sass --save-dev
5. npm install sass-loader --save-dev
The versions of some packages is enforced in package.json. The solution is to re-add them by letting npm to establish their right version for your OS.
I fixed this issue by forcing Visual Studio to use the node version I installed instead of VS installed version of node:
Go to Visual Studio, Tools -> Options, Project and Solutions -> Web Package Management -> External Web Tools, and move the $(PATH) to the second place below .\node_modules\.bin and above $(VSInstalledExternalTools). Restart Visual Studio.
Found this solution here.

How to fix "Error: Could not find the implementation for builder #angular-devkit/build-angular:dev-server"

I upgrade my angular project to angular 8 and now when I type
ng serve
I receive this error:
Error: Could not find the implementation for builder #angular-devkit/build-angular:dev-server
For the upgrade I used ng update. When I type
ng update
I get:
Using package manager: 'npm'
Collecting installed dependencies...
Found 41 dependencies.
We analyzed your package.json and everything seems to be in order. Good work!
Maybe this'll help
npm install --save-dev #angular-devkit/build-angular

Module build failed: Error: `sass-loader` requires `node-sass` >=4. Please install a compatible version

Can you help me? I got this error when I hit ng s
ERROR in ./src/styles.scss (./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./node_modules/sass-loader/lib/loader.js??ref--14-3!./src/styles.scss)
Module build failed: Error: `sass-loader` requires `node-sass` >=4. Please install a compatible version.
at Object.sassLoader (E:\Ibtikar\shop\node_modules\sass-loader\lib\loader.js:31:19)
ERROR in ./src/app/app.component.scss
Module build failed: Error: `sass-loader` requires `node-sass` >=4. Please install a compatible version.
at Object.sassLoader (E:\Ibtikar\shop\node_modules\sass-loader\lib\loader.js:31:19)
ERROR in ./src/app/detail-view/detail-view.component.scss
Module build failed: Error: `sass-loader` requires `node-sass` >=4. Please install a compatible version.
at Object.sassLoader (E:\Ibtikar\shop\node_modules\sass-loader\lib\loader.js:31:19)
ERROR in ./src/app/footer/footer.component.scss
Module build failed: Error: `sass-loader` requires `node-sass` >=4. Please install a compatible version.
at Object.sassLoader (E:\Ibtikar\shop\node_modules\sass-loader\lib\loader.js:31:19)
ERROR in ./src/app/products/products.component.scss
Module build failed: Error: `sass-loader` requires `node-sass` >=4. Please install a compatible version.
at Object.sassLoader (E:\Ibtikar\shop\node_modules\sass-loader\lib\loader.js:31:19)
ERROR in ./src/app/slider/slider.component.scss
Module build failed: Error: `sass-loader` requires `node-sass` >=4. Please install a compatible version.
at Object.sassLoader (E:\Ibtikar\shop\node_modules\sass-loader\lib\loader.js:31:19)
ERROR in ./src/app/header/header.component.scss
Module build failed: Error: `sass-loader` requires `node-sass` >=4. Please install a compatible version.
at Object.sassLoader (E:\Ibtikar\shop\node_modules\sass-loader\lib\loader.js:31:19)
You need to run npm rebuild (or npm rb) in your project folder.
This command runs the npm build command on the matched folders. This is useful when you install a new version of node, and must recompile all your C++ addons with the new binary.
Source
This worked for me
npm install --save-dev node-sass
npm rebuild node-sass --force : should work
npm rebuild --force - this will rebuild all packages. Only this worked for me
Try rebuilding node-sass using npm rebuild node-sass and check if that fixes your issue.
working solution
Step 1 rm -rf node_modules it removes the directory recursively (the existing node modules, takes a min or two)
Step 2 npm install this will work for sure, i did try and it worked.
If you are facing this issue even after upgrading node-saas to version above 4 then follow below thread
Sass-loader requires node-sass >=4 even if that exist
Re-installing webpack solved the issue for me.
npm install --save-dev webpack
or, you can try :
npm rebuild node-sass
check for the supported version. As on date I had node 12.x installed on my machine and spent an hour running npm install node-sass and npm rebuild node-sass with --force and --save-dev hints.
Nothing worked until I uninstalled the node 12.x and installed node 10.x. So if you're hitting the same problem and could not get it to work, try following
Check if your Node version (Run node -v) if it's higher than 10.x
Uninstall the Node 12.x from your machine
Download and Install Node 10.x
Restart the console/editor (not required for all and may work without this step)

React-Native Install Error

ling react-native I get the following error (on windows)
C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.c(31):
error C2373: '__pfnDliNotifyHook2': redefinition; different type modifiers
[C:\Projects\JustEatLife\node_modules\react-native\node_modules\ws
\node_modules\bufferutil\build\bufferutil.vcxproj]
I've installed windows sdks, added the C++ tools to my VS 2015 installation, installed android studio, java etc.
Is there any way to resolve this?
I got same problem, and for me the answer was to update node-gyb from version 3.3.1 to 3.4.0 in npm.
For instructions how to do it, see:
npm install fails with error C2373 with vs2015 update 3
If npm i fails, try npm install node-gyp after you have updated version number in packages.json