1
我试图建立使用泊坞一个ASP.Net 5.0 Web应用程序,但是当它到达故宫安装步骤,它失败:泊坞窗NPM安装失败
Step 14 : RUN npm install
---> Running in 15c191d1ca1d
npm WARN deprecated [email protected]: Please use Karma directly: https://github.com/karma-runner/gulp-karma
npm WARN deprecated [email protected]: graceful-fs version 3 and before will fail on newer node releases. Please update to [email protected]^4.0.0 as soon as possible.
npm WARN deprecated [email protected]: [email protected]<3.0.0 is no longer maintained. Upgrade to [email protected]^4.0.0.
npm WARN deprecated [email protected]: graceful-fs version 3 and before will fail on newer node releases. Please update to [email protected]^4.0.0 as soon as possible.
npm WARN deprecated [email protected]: graceful-fs version 3 and before will fail on newer node releases. Please update to [email protected]^4.0.0 as soon as possible.
npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN prefer global [email protected] should be installed with -g
npm WARN prefer global [email protected] should be installed with -g
> [email protected] install /app/src/CDWebDesigner/node_modules/node-sass
> node scripts/install.js
Binary downloaded and installed at /app/src/CDWebDesigner/node_modules/node-sass/vendor/linux-x64-11/binding.node
> [email protected] postinstall /app/src/CDWebDesigner/node_modules/spawn-sync
> node postinstall
Installing native dependencies (this may take up to a minute)
> [email protected] postinstall /app/src/CDWebDesigner/node_modules/node-sass
> node scripts/build.js
The command 'npm install' returned a non-zero code: 1
ERROR: Build failed with: exit status 1
我看不到任何错误这里解释了为什么它失败,只有WARNings。我认为这必须是npm安装或其试图安装的模块的问题。 [email protected]表示,将在新的NPM安装失败,但我不知道如何更新此,或依赖的是拉这个。
Dockerfile
FROM microsoft/aspnet:1.0.0-rc1-final
RUN apt-get update && apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup | bash -
RUN apt-get install -y nodejs
RUN apt-get install bzip2
RUN curl -L https://npmjs.org/install.sh | sh
# Install bower
RUN npm install -g bower
# Install Gulp
RUN npm install -g gulp
# Install Git (for bower)
RUN apt-get -y install git
COPY . /app
WORKDIR /app
RUN ["dnu", "restore"]
WORKDIR ./src/myapp
RUN ["npm", "install"]
RUN ["bower", "install", "--allow-root"]
RUN ["gulp", "prod"]
EXPOSE 5000
CMD dnx kestrel
的package.json
{
"name": "ASP.NET",
"version": "0.0.0",
"devDependencies": {
"gulp": "3.8.11",
"gulp-concat": "2.5.2",
"gulp-cssmin": "0.1.7",
"gulp-uglify": "1.2.0",
"del": "^2.2.0",
"gulp-sass": "^2.0.4",
"gulp-typescript": "~2.8.0",
"main-bower-files": "~2.9.0",
"gulp-sourcemaps": "~1.5.2",
"mocha": "~2.2.5",
"gulp-mocha": "~2.1.3",
"karma-chai": "~0.1.0",
"chai": "~3.2.0",
"karma": "~0.13.9",
"karma-jasmine": "~0.3.6",
"karma-phantomjs-launcher": "~0.2.1",
"karma-spec-reporter": "~0.0.20",
"gulp-karma": "^0.0.4",
"gulp-js-obfuscator": "~1.0.0",
"gulp-order": "^1.1.1",
"gulp-debug": "^2.1.2"
}
}
谢谢。我将该映像构建到失败的命令之前,并手动运行npm install,以提供有关错误的更多信息 - 存在一些相互冲突的依赖关系。 – user882807