关于 NPM run watch-poll 报错问题

此教程存在缺陷,按照他的步骤,在resources/assets/sass/app.scss文件中只保留下面一行:

// Bootstrap
@import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";

但是运行 npm run watch-poll时仍然报错;
查看报错信息,发现未找到 bootstrap-sass下的文件:
经核查发现node_modules/ 路径下没有bootstrap-sass包;
解决办法如下:

npm install bootstrap-sass

下载bootstrap-sass包,重新编译一下

npm run watch-poll
薄荷柠檬水
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 2

我执行你的方法:npm install bootstrap-sass
还是报错。我卡这一天一夜了,不知道什么时候能解决。

npm WARN rollback Rolling back @babel/core@7.5.5 failed (this is probably harmless): EBUSY: resource busy or locked, unlink '/home/vagrant/Code/weibo/node_modules/@babel/core/.nfs0000000000002d4a0000001d'
npm WARN rollback Rolling back rc@1.2.8 failed (this is probably harmless): EBUSY: resource busy or locked, unlink '/home/vagrant/Code/weibo/node_modules/fsevents/node_modules/rc/.nfs0000000000002de300000046'
npm WARN rollback Rolling back fsevents@1.2.9 failed (this is probably harmless): EBUSY: resource busy or locked, unlink '/home/vagrant/Code/weibo/node_modules/fsevents/node_modules/inflight/.nfs0000000000002dce0000004e'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! path ../@babel/parser/bin/babel-parser.js
npm ERR! code EIO
npm ERR! errno -5
npm ERR! syscall symlink
npm ERR! EIO: i/o error, symlink '../@babel/parser/bin/babel-parser.js' -> '/home/vagrant/Code/weibo/node_modules/.bin/parser'

npm ERR! A complete log of this run can be found in:
npm ERR! /home/vagrant/.npm/_logs/2019-07-25T12_52_58_998Z-debug.log
➜ weibo git:(filling-layout-style) ✗

4年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!