LoginSignup
0
0

More than 3 years have passed since last update.

Windows7でnpm install時のエラー

Posted at

npm installがうまくいかなかった場合

package-lock.jsonとnode_moduleフォルダを削除

npm cache clean -f

もう一回

npm  install

※node_moduleがファイル名が長すぎて削除できないとエラー出た場合、ネットワークを割り当てて削除してあげる

▼参考サイト
ファイル名が長すぎて削除できない場合
https://increment-log.com/windows-is-long-file-name-cannot-delete/
ディレクトリがローカルの場合
http://replication.hatenablog.com/entry/20130118/1358561978

npm install時にパーミッション系のエラーが出た

npm install時にパーミッション系のエラーが出たら

npm cache clean -f

それでも直らなかったら

npm install -g npm@5.0.3

JavaScript heap out of memory when building Vue.js app

npm run build NODE_OPTIONS=--max_old_space_size=4096
npm run serve NODE_OPTIONS=--max_old_space_size=4096
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0