Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 313 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
npm ERR! asyncWrite is not a function

#11
Reinstalling npm -- [mentioned in n installation guide][1] -- worked for me.

$ curl -0 -L

[To see links please register here]

| sudo sh


[1]:

[To see links please register here]

Reply

#12
This is due to company network security policy
Work Around
----------
1. Go to

[To see links please register here]

and
download the zip file
2. Create underscore folder on C:\Users\{YourUsername}\AppData\Roaming\npm\node_modules\underscore if you want your packge to be global
3. Extract to folder
4. Add "dependencies": {
"underscore": "^{downloadedVersionNumber}" on you package.json file
5. create a node_module>underscore and copy the Extract to folder


----------


Reply

#13
1. Install an old version node, which can run success.
2. Update your npm (global).
3. Install the high version node.


The following is worked in my local environment.

First install and old version node.

`sudo n 8.11.3`

And then update npm.

`sudo npm i -g npm`

Now, you update your node, everything work fine.

`sudo n 10.12.0`
Reply

#14
n was updated in v2.1.12 to address this issue. Previously, the new npm was just being copied over the existing folder. This could cause problems when the layout of the node_modules changed as happened in node 10.

Deleting npm and reinstalling will fix the npm issue. Upgrading `n` will prevent the issue from happening again when switching versions using `n`.

[To see links please register here]


e.g.

$ rm /usr/local/bin/node
$ rm -rf /usr/local/lib/node_modules/npm
$ n latest
$ npm install -g n
/usr/local/bin/n -> /usr/local/lib/node_modules/n/bin/n
+ [email protected]
updated 1 package in 0.466s
Reply

#15
Solution for windows platform:

In my case the computer had win7 and by mistake installed a newer version of nodejs.

To solve this problem I did:

* Starting with deleting nodesjs windows variables (system properties -> the advance tab)
* Uninstal nodejs
* Find the nodejs folder under program and delete it (tip: do it using cmd for faster results)
* Enter regedit (press and hold "windows key" and letter "R" in your keyboard then type "regedit" ... Be carefull with regedit!!
* Once regedit is open .. Edit menu then click on find
* In the dialog box type "nodejs"
* If it finds a key .. delete it. Press "F3" to find the next one and keep going until you delete them all.
* In case there is one not allowing you to delete you need to enter in "save mode or with admin rights" to be able to delete those keys.
* After that restart the computer, reinstall nodejs the newest version. It should be working fine.

That's what I did and it worked!



Reply

#16
I've fixed this by:

1. Cleaning cache `npm cache clean -f`
2. Upgrading `node` to latest version: `nvm install <version>`
3. Upgrading `npm` to latest version: `npm i -g npm`
4. Removing dependencies: `rm -rf node_modules`
5. Installing dependencies again: `npm install`
Reply

#17
Solution for windows platform

1. Uninstall Node
2. Delete folder from programfiles if exist (*C:\Program Files\nodejs*)
3. Delete npm's data folder: *C:\Users\{Your uername}\AppData\Roaming\npm*

Install node Again(use different installation folder like *"C:\Program Files\nodejs-2"*)

Root cause is node and nvm installed in same installation folder.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through