Mac安装vue产生错误

p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d53bd3; background-color: #ffffff }
p.p3 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff; min-height: 13.0px }
span.s1 { }
span.s2 { color: #bfbfbf; background-color: #000000 }
span.s3 { background-color: #999900 }
span.s4 { color: #d53bd3 }
span.s5 { color: #990000; background-color: #000000 }
span.s6 { color: #000000 }
span.s7 { color: #c33720 }
span.s8 { color: #33bbc8 }

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/webpack/node_modules/[email protected]@schema-utils/node_modules/ajv

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/webpack/node_modules/[email protected]@schema-utils/node_modules/ajv-keywords

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/webpack/node_modules/terser-webpack-plugin

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/webpack/node_modules/watchpack

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/webpack/node_modules/is-descriptor/node_modules

npm ERR! path /usr/local/lib/node_modules/webpack/node_modules/assert

npm ERR! code ENOENT

npm ERR! errno -2

npm ERR! syscall access

npm ERR! enoent ENOENT: no such file or directory, access ‘/usr/local/lib/node_modules/webpack/node_modules/assert‘

npm ERR! enoent This is related to npm not being able to find a file.

npm ERR! enoent

npm ERR! A complete log of this run can be found in:

npm ERR!     /Users/zhouqiang/.npm/_logs/2018-12-11T11_57_35_887Z-debug.log

 

出现这种情况我建议你还是重新安装node吧

可以通过命令查看一下npm配置

 npm list  -g    

原文地址:https://www.cnblogs.com/cap-rq/p/10104840.html

时间: 2024-11-14 12:23:44

Mac安装vue产生错误的相关文章

Mac安装vue

 Mac安装vue 一.安装brew 打开终端运行以下命令: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 配置brew环境变量 Taojie:~ apple$ open .bash_profile Taojie:~ apple$ source .bash_profile 添加brew路径如下: 装成功后,查看一下brew的版本信息:

Mac OS X下安装Vue脚手架(vue-cli)

前言 Vue作为前端三大框架(Angular,React,Vue)之一,号称是最简单,最容易上手的框架,同时也是行内的大趋势,还可以用来开发最火的小程序.具有开发快,双向数据流等特点,有些人认为Vue是Angular和React的结合,既有Angular的模板语法也有React的组件化体系,以至于促使其发展飞快.下面来就来讲讲Vue脚手架(vue-cli)的安装吧. 安装vue(使用npm 推荐) # 全局安装 vue-cli $ npm install --global vue-cli # 创

mac 下vue环境安装时遇到的问题记录

1. 使用brew install node 命令安装node 时遇到的问题: MacBook-Pro:~ zh$ brew install node ==> Downloading https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby-2.3.3_2.leopard_64.bottle.tar.gz Already downloaded: /Users/zh/Library/Caches/Homebrew/portab

mac 安装 swoole 可能会出现的错误

请先看完之后再操作 一.用pecl安装swoole(没有安装起来) 2018年4月,由于homebrew的变动,导致无法使用brew install的方式安装php的扩展,现在改为用pecl安装,pecl安装swoole的方法为: pecl install swoole 出现在选项要填yes还是no,这篇文章有写:https://www.jianshu.com/p/14f542b7e5d0#comment-27164461 二.可能出现的报错及解决方法 2.1 fatal error: 'ope

mac 安装nginx

1.brew search nginx 2.brew install nginx 启动nginx ,sudo nginx ;访问localhost:8080 发现已出现nginx的欢迎页面了. 备注: ln -s  /usr/local/sbin/nginx /usr/bin/nginx 做个软连接.常用的指令有: nginx -V 查看版本,以及配置文件地址nginx -v 查看版本nginx -c filename 指定配置文件nginx -h 帮助 #重新加载配置|重启|停止|退出 ngi

mac 安装 nginx 环境

1.brew search nginx 2.brew install nginx 启动nginx ,sudo nginx ;访问localhost:8080 发现已出现nginx的欢迎页面了. 备注: ln -s  /usr/local/sbin/nginx /usr/bin/nginx 做个软连接.[——根据具体目录而定]常用的指令有: nginx -V 查看版本,以及配置文件地址nginx -v 查看版本nginx -c filename 指定配置文件nginx -h 帮助 #重新加载配置|

Mac启动mysql出现错误

Mac启动mysql出现错误error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)' 刚刚升级mac到10.10,重新用Homebrew安装了出现提示: A "/etc/my.cnf" from another install may interfere with a Homebrew-built server starting up correctly. To connect:

MAC 安装MySQLdb

首先 下载MySQL-python-1.2.3.tar解压后 修改 site.cfg 文件 #mysql_config = mysql_config = /usr/local/bin/mysql_config 将这行#注释去掉 修改为 mysql_config = /usr/local/mysql/bin/mysql_config Python setup.py cleanPython setup.py buildsudo Python setup.py install sudo ln -s /

mac 安装mysql 报错“ERROR 2002 (HY000): Can not connect to local MySQL server through socket '/tmp/mysql.sock' (2)” 解决办法

首先安装 homebrew 再 brew install mysql 之后连接 mysql 无论是登录还是修改初始密码都会报如下的错误 ERROR 2002 (HY000): Can not connect to local MySQL server through socket '/tmp/mysql.sock' (2) 运行如下解决:参考 http://www.thinksaas.cn/group/topic/347978/ unset TMPDIR mysql_install_db --v