【发布时间】:2018-07-30 07:22:08
【问题描述】:
通过 composer 全新安装 laravel 5.6
我是如何安装的:
composer create-project laravel/laravel
安装后我跑了:
npm install
我回来了:
npm notice created a lockfile as package-lock.json. You should commit this file. Up to date in 0.163s.
它不会创建 node_modules 文件夹。
如果我尝试使用yarn 安装依赖项:
yarn install
我回来了:
yarn install v1.3.2 info No lockfile found. Resolving packages... warning laravel-mix > img-loader > imagemin-mozjpeg > mozjpeg > bin-wrapper > download > gulp-decompress > gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidlines at https://medium.com/gulpjs/gulp-util-ca3b1f9fac5 | Fetching packages... info fsevents@1.1.3: The platform 'win32' is incompatible with this module. info "fsevents@1.1.3" is an optional dependency and failed compatability check. Excluding it from installation. Linking dependencies.... Building fresh packages... success Saved lockfile. Done in 35.38s
这会创建一个 node_modules 文件夹,其中只有“.yarn-integrity”没有模块。
到中页的链接失效,收到 404 所以没有运气。
我的节点版本是:“v8.9.4”,我的纱线版本是:'v1.3.2'
- 编辑:这不是 git 问题。我没有使用 git
【问题讨论】:
-
在你创建项目之后运行
npm install之前,你有没有cd进入项目目录? -
是的,我做到了。我目前在项目目录中。
标签: node.js laravel laravel-5 npm